mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 02:43:50 +00:00
add warning and danger transitions as timer life cycle events (#1071)
* setup detection of TImerPhase changes * add integration event for transition to warning * add integration event for transition to danger --------- Co-authored-by: Carlos Valente <34649812+cpvalente@users.noreply.github.com>
This commit is contained in:
@@ -6,6 +6,8 @@ export enum TimerLifeCycle {
|
||||
onClock = 'onClock',
|
||||
onUpdate = 'onUpdate',
|
||||
onFinish = 'onFinish',
|
||||
onWarning = 'onWarning',
|
||||
onDanger = 'onDanger',
|
||||
}
|
||||
|
||||
export type TimerLifeCycleKey = keyof typeof TimerLifeCycle;
|
||||
|
||||
Reference in New Issue
Block a user