v2 event timer (#274)

* lint: cleanup unused

* refactor: rename component to avoid conflict

* style: gap in element row

* refactor: rename playstate -> playback

* refactor: cleanup usages of timer and prepare integration manager

* style: re-arrange button order

* refactor: improve event loading

* feat(timer-service): hot reload

* fix: issue with duration input

* chore: cleanup debug

* refactor: resolve poll from runtime store

* refactor: cleanup merge

* refactor: small improvements in timer hot-reload
This commit is contained in:
Carlos Valente
2022-12-26 12:58:33 +01:00
committed by GitHub
parent 062ff7226a
commit 110d3fb7a3
39 changed files with 637 additions and 601 deletions
@@ -77,7 +77,7 @@ export default function Countdown(props) {
return null;
}
const standby = time.playstate !== 'start' && selectedId === follow?.id;
const standby = time.playback !== 'start' && selectedId === follow?.id;
const isRunningFinished = time.finished && runningMessage === timerMessages.running;
const isSelected = runningMessage === timerMessages.running;
const delayedTimerStyles = delay > 0 ? 'aux-timers__value--delayed' : '';
@@ -32,7 +32,7 @@ export const fetchTimerData = (time, follow, selectedId) => {
if (selectedId === follow.id) {
// check that is not running
message = time.playstate === 'pause' ? timerMessages.waiting : timerMessages.running;
message = time.playback === 'pause' ? timerMessages.waiting : timerMessages.running;
timer = time.running;
} else if (time.clock < follow.timeStart) {
// if it hasnt started, we count to start