mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 09:23:51 +00:00
fix: stop log incorrectly (#1185)
* fix: stop log incorrectly * prevent start if already playing
This commit is contained in:
committed by
GitHub
parent
db5fbd8019
commit
e20cd87673
@@ -5,7 +5,7 @@ import { Playback, TimerPhase } from 'ontime-types';
|
||||
*/
|
||||
export function validatePlayback(currentPlayback: Playback, timerPhase: TimerPhase) {
|
||||
return {
|
||||
start: currentPlayback !== Playback.Stop,
|
||||
start: currentPlayback !== Playback.Stop && currentPlayback !== Playback.Play,
|
||||
pause: currentPlayback === Playback.Play,
|
||||
roll: currentPlayback !== Playback.Roll && timerPhase !== TimerPhase.Overtime,
|
||||
stop: currentPlayback !== Playback.Stop,
|
||||
|
||||
Reference in New Issue
Block a user