refactor: roll handover (#451)

* style: tweak active colour

* refactor: create shared playback validation

* feat: allow handover from and to roll
This commit is contained in:
Carlos Valente
2023-07-15 11:06:10 +02:00
committed by GitHub
parent 91a2d395cb
commit b89d0787d4
8 changed files with 56 additions and 37 deletions
@@ -0,0 +1,10 @@
import { Playback } from 'ontime-types';
export function validatePlayback(currentPlayback: Playback) {
return {
start: currentPlayback !== Playback.Stop,
pause: currentPlayback === Playback.Play || currentPlayback === Playback.Roll,
roll: true,
stop: currentPlayback !== Playback.Stop,
};
}