mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 05:34:09 +00:00
style: editor tweaks (#736)
* style: menu tweaks * style: editor tweaks * style: freeze
This commit is contained in:
@@ -315,10 +315,6 @@ export const stateMutations = {
|
||||
addTime(amount: number) {
|
||||
mutate((state) => {
|
||||
// TODO: what kind of validation go here or in the consumer?
|
||||
if (state.timer.startedAt === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
state.timer.addedTime += amount;
|
||||
state.timer.expectedFinish += amount;
|
||||
state.timer.current += amount;
|
||||
@@ -407,6 +403,7 @@ export const stateMutations = {
|
||||
// TODO: can we simplify the didUpdate and shouldNotify
|
||||
_didUpdate = true;
|
||||
}
|
||||
|
||||
return {
|
||||
didUpdate: _didUpdate,
|
||||
doRoll: _doRoll,
|
||||
|
||||
Reference in New Issue
Block a user