mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 03:13:47 +00:00
Refactor: split runtime state (#1725)
* refactor: runtime types * refactor: runtimeState functions to use the split type * refactor: RuntimeService to use the new split data * refactor: use the split data in the UI * update comments * refactor: rename runtime to offset * fix utils test
This commit is contained in:
committed by
Carlos Valente
parent
ed93cf313a
commit
048a9c96ea
+10
-9
@@ -18,15 +18,16 @@ const staticAutocompleteOptions = [
|
||||
'{{timer.expectedFinish}}',
|
||||
'{{timer.secondaryTimer}}',
|
||||
'{{timer.startedAt}}',
|
||||
'{{runtime.selectedEventIndex}}',
|
||||
'{{runtime.numEvents}}',
|
||||
'{{runtime.offset}}',
|
||||
'{{runtime.plannedStart}}',
|
||||
'{{runtime.plannedEnd}}',
|
||||
'{{runtime.actualStart}}',
|
||||
'{{runtime.expectedEnd}}',
|
||||
'{{currentGroup.id}}',
|
||||
'{{currentGroup.startedAt}}',
|
||||
'{{rundown.selectedEventIndex}}',
|
||||
'{{rundown.numEvents}}',
|
||||
'{{rundown.plannedStart}}',
|
||||
'{{rundown.plannedEnd}}',
|
||||
'{{rundown.actualStart}}',
|
||||
'{{offset.absolute}}',
|
||||
'{{offset.relative}}',
|
||||
'{{offset.expectedRundownEnd}}',
|
||||
'{{offset.expectedGroupEnd}}',
|
||||
'{{offset.expectedFlagStart}}',
|
||||
];
|
||||
|
||||
const eventStaticPropertiesNow = [
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
useClock,
|
||||
useCurrentGroupId,
|
||||
useNextFlag,
|
||||
useRuntimeOverview,
|
||||
useRundownOverview,
|
||||
useRuntimePlaybackOverview,
|
||||
useTimer,
|
||||
} from '../../../common/hooks/useSocket';
|
||||
@@ -31,7 +31,7 @@ import { OverUnder, TimeColumn } from './TimeLayout';
|
||||
import style from './TimeElements.module.scss';
|
||||
|
||||
export function StartTimes() {
|
||||
const { plannedEnd, plannedStart, actualStart, expectedEnd } = useRuntimeOverview();
|
||||
const { plannedEnd, plannedStart, actualStart, expectedEnd } = useRundownOverview();
|
||||
|
||||
const plannedStartText = plannedStart === null ? timerPlaceholder : formatTime(plannedStart);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user