mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 11:23:50 +00:00
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:
@@ -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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user