feat: allow editing times in cuesheet

This commit is contained in:
Carlos Valente
2024-12-21 12:59:50 +01:00
committed by Carlos Valente
parent b38a7e5c92
commit bdd2a62cee
6 changed files with 87 additions and 49 deletions
@@ -40,7 +40,7 @@ export default function CuesheetTable(props: CuesheetTableProps) {
const { updateEvent, updateTimer } = useEventAction();
const { selectedEventId } = useSelectedEventId();
const { followSelected, hideDelays, hidePast } = useCuesheetOptions();
const { followSelected, hideDelays, hidePast, showDelayedTimes, hideTableSeconds } = useCuesheetOptions();
const { columnVisibility, columnOrder, columnSizing, resetColumnOrder, setColumnVisibility, setColumnSizing } =
useColumnManager(columns);
@@ -86,6 +86,10 @@ export default function CuesheetTable(props: CuesheetTableProps) {
// the timer element already contains logic to avoid submitting a unchanged value
updateTimer(eventId, field, payload, true);
},
options: {
showDelayedTimes,
hideTableSeconds,
},
},
});