mirror of
https://github.com/LucasVbr/own-workspace.git
synced 2026-05-13 17:21:58 +00:00
hotfix pause + timer
This commit is contained in:
@@ -128,6 +128,7 @@ export default {
|
|||||||
},
|
},
|
||||||
countDownTimer: function () {
|
countDownTimer: function () {
|
||||||
if (this.minutes === "00" && this.seconds === "00") {
|
if (this.minutes === "00" && this.seconds === "00") {
|
||||||
|
console.log("ici")
|
||||||
if (this.isRestingTime) {
|
if (this.isRestingTime) {
|
||||||
this.isRestingTime = false;
|
this.isRestingTime = false;
|
||||||
this.resetSession();
|
this.resetSession();
|
||||||
@@ -161,11 +162,14 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.seconds -= 1;
|
this.seconds -= 1;
|
||||||
}
|
}
|
||||||
this.prettyTime();
|
|
||||||
expected += interval;
|
expected += interval;
|
||||||
this.timeout = setTimeout(this.countDownTimer, Math.max(0, interval - dt));
|
this.timeout = setTimeout(stepFunc, Math.max(0, interval - dt));
|
||||||
|
this.prettyTime();
|
||||||
|
if (this.minutes === "00" && this.seconds === "00") {
|
||||||
|
this.countDownTimer()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.timeout = setTimeout(stepFunc, interval)
|
this.timeout = setTimeout(stepFunc, interval);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeDots() {
|
changeDots() {
|
||||||
|
|||||||
Reference in New Issue
Block a user