diff --git a/src/showplanner/Player.tsx b/src/showplanner/Player.tsx index 7448220..7dd3f6b 100644 --- a/src/showplanner/Player.tsx +++ b/src/showplanner/Player.tsx @@ -70,7 +70,8 @@ const setTrackIntro = ( await api.setTrackIntro(track.trackid, secs); dispatch(ShowPlanState.setItemTimings({ item: track, intro: secs })); } catch (e) { - console.error("Failed to Set Track Intro: " + e); + dispatch(ShowPlanState.planSaveError("Failed saving track outro.")); + console.error("Failed to set track intro: " + e); } }; @@ -84,7 +85,8 @@ const setTrackOutro = ( await api.setTrackOutro(track.trackid, secs); dispatch(ShowPlanState.setItemTimings({ item: track, outro: secs })); } catch (e) { - console.error("Failed to Set Track Outro: " + e); + dispatch(ShowPlanState.planSaveError("Failed saving track outro.")); + console.error("Failed to set track outro: " + e); } }; @@ -98,7 +100,8 @@ const setTrackCue = ( await api.setTimeslotItemCue(item.timeslotitemid, secs); dispatch(ShowPlanState.setItemTimings({ item, cue: secs })); } catch (e) { - console.error("Failed to Set Track Cue: " + e); + dispatch(ShowPlanState.planSaveError("Failed saving track cue.")); + console.error("Failed to set track cue: " + e); } }; diff --git a/src/showplanner/state.ts b/src/showplanner/state.ts index 27e7df4..5269388 100644 --- a/src/showplanner/state.ts +++ b/src/showplanner/state.ts @@ -199,7 +199,7 @@ const showplan = createSlice({ export default showplan.reducer; -export const { setItemTimings } = showplan.actions; +export const { setItemTimings, planSaveError } = showplan.actions; export const moveItem = ( timeslotid: number,