mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 06:59:09 +00:00
refactor: allow transition from roll to playback (#847)
This commit is contained in:
@@ -5,7 +5,7 @@ import { Playback } from 'ontime-types';
|
|||||||
*/
|
*/
|
||||||
export function validatePlayback(currentPlayback: Playback) {
|
export function validatePlayback(currentPlayback: Playback) {
|
||||||
return {
|
return {
|
||||||
start: currentPlayback !== Playback.Stop && currentPlayback !== Playback.Roll,
|
start: currentPlayback !== Playback.Stop,
|
||||||
pause: currentPlayback === Playback.Play,
|
pause: currentPlayback === Playback.Play,
|
||||||
roll: currentPlayback !== Playback.Roll,
|
roll: currentPlayback !== Playback.Roll,
|
||||||
stop: currentPlayback !== Playback.Stop,
|
stop: currentPlayback !== Playback.Stop,
|
||||||
|
|||||||
Reference in New Issue
Block a user