mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-04 15:08:01 +00:00
b89d0787d4
* style: tweak active colour * refactor: create shared playback validation * feat: allow handover from and to roll
11 lines
312 B
TypeScript
11 lines
312 B
TypeScript
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,
|
|
};
|
|
}
|