refactor: allow transition from roll to playback (#847)

This commit is contained in:
Carlos Valente
2024-03-22 13:32:36 +01:00
committed by GitHub
parent dddb11ff40
commit f4692db021
@@ -5,7 +5,7 @@ import { Playback } from 'ontime-types';
*/
export function validatePlayback(currentPlayback: Playback) {
return {
start: currentPlayback !== Playback.Stop && currentPlayback !== Playback.Roll,
start: currentPlayback !== Playback.Stop,
pause: currentPlayback === Playback.Play,
roll: currentPlayback !== Playback.Roll,
stop: currentPlayback !== Playback.Stop,