Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
"MISSING_ACL_RULES": "At least one role with Read and Write permissions is required!",
"SAVED_ACL_RULES": "The access rules have been saved.",
"SERIES_THEME_REPROCESS_EXISTING_EVENTS": "The existing events in this series will need to be reprocessed",
"SERIES_THEME_NOT_SAVED": "The theme could not be saved",
"SERIES_ACL_LOCKED": "Editing Access Policies is not allowed when operations are running on an event that is part of the series",
"EVENT_ACL_MISSING_READWRITE_ROLE": "The Access Policy requires at least one role with Read and Write permissions.",
"METADATA_SAVED": "The metadata has been saved.",
Expand Down
16 changes: 16 additions & 0 deletions src/slices/seriesDetailsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,14 @@ export const updateSeriesTheme = (params: {
})
.catch(response => {
console.error(response);
dispatch(
addNotification({
type: "error",
key: "SERIES_THEME_NOT_SAVED",
duration: -1,
context: NOTIFICATION_CONTEXT,
}),
);
});
} else {
const data = new URLSearchParams();
Expand All @@ -359,6 +367,14 @@ export const updateSeriesTheme = (params: {
})
.catch(response => {
console.error(response);
dispatch(
addNotification({
type: "error",
key: "SERIES_THEME_NOT_SAVED",
duration: -1,
context: NOTIFICATION_CONTEXT,
}),
);
});
}
};
Expand Down
Loading