mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 02:43:50 +00:00
refactor: allow secondary rundowns (#2086)
* refactor: allow secondary rundowns * ui: move dropdown * feat: follow loaded * ui: background edit warning ui: fix disable radio button * feat(ui): add loaded sufix in the rundown list * feat(ui): add direct link to background edit from rundown manager * fix: better fallback * fix: default to is isCurrentRundown for nav bar colour * chore: rename navigate to cuesheet --------- Co-authored-by: alex-arc <ac@omnivox.dk>
This commit is contained in:
@@ -63,7 +63,7 @@ const actionHandlers: Record<ApiActionTag, ActionHandler> = {
|
||||
throw new Error('Missing Event ID');
|
||||
}
|
||||
|
||||
const { entries } = getCurrentRundown();
|
||||
const { entries, id: currentRundownId } = getCurrentRundown();
|
||||
const customFields = getProjectCustomFields();
|
||||
|
||||
const targetEntry = entries[id];
|
||||
@@ -89,8 +89,8 @@ const actionHandlers: Record<ApiActionTag, ActionHandler> = {
|
||||
Object.assign(patchEntry, newObjectProperty);
|
||||
}
|
||||
});
|
||||
//TODO: windowed edit function
|
||||
await editEntry(patchEntry);
|
||||
|
||||
await editEntry(currentRundownId, patchEntry);
|
||||
return { payload: 'success' };
|
||||
},
|
||||
/* Message Service */
|
||||
|
||||
Reference in New Issue
Block a user