feat: keep clock ticking on server drops

This commit is contained in:
Carlos Valente
2026-03-28 08:01:34 +01:00
committed by Carlos Valente
parent 9e771a2f24
commit 37dc9a620d
8 changed files with 61 additions and 18 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
import { Playback } from 'ontime-types';
import { useAutoTickingClock } from '../../common/hooks/useAutoTickingClock';
import { useIsSmallScreen } from '../../common/hooks/useIsSmallScreen';
import { useStudioClockSocket } from '../../common/hooks/useSocket';
import { cx } from '../../common/utils/styleUtils';
@@ -18,7 +19,8 @@ interface StudioClockProps {
export default function StudioClock({ hideCards }: StudioClockProps) {
const isSmallScreen = useIsSmallScreen();
const { clock, playback } = useStudioClockSocket();
const clock = useAutoTickingClock();
const { playback } = useStudioClockSocket();
const onAir = playback !== Playback.Stop;
// if we are on mobile and have to show the cards