mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 21:54:09 +00:00
feat: time to next flag
This commit is contained in:
@@ -225,6 +225,7 @@ export function makeRundownMetadata(customFields: CustomFields) {
|
||||
playableEventOrder: [],
|
||||
timedEventOrder: [],
|
||||
flatEntryOrder: [],
|
||||
flags: [],
|
||||
|
||||
entries: {},
|
||||
order: [],
|
||||
@@ -300,6 +301,11 @@ function processEntry<T extends OntimeEntry>(
|
||||
processedData.firstStart = currentEntry.timeStart;
|
||||
}
|
||||
|
||||
// check if event is flagged
|
||||
if (currentEntry.flag) {
|
||||
processedData.flags.push(currentEntry.id);
|
||||
}
|
||||
|
||||
currentEntry.gap = getTimeFrom(currentEntry, processedData.latestEvent);
|
||||
|
||||
if (currentEntry.gap === 0) {
|
||||
|
||||
Reference in New Issue
Block a user