fix: Various errors & 500 error on duplicate url when editing (#9731)
This commit is contained in:
1 parent
2d6eebcd8a
commit
52936f60b4
8 files changed
+34
-16
No files matched your search
@@ -168,18 +168,14 @@ const EventTypePage = (props: EventTypeSetupProps) => {
|
||||
}
|
||||
|
||||
if (err.data?.code === "UNAUTHORIZED") {
|
||||
message = `${err.data.code}: You are not able to update this event`;
|
||||
message = `${err.data.code}: ${t("error_event_type_unauthorized_update")}`;
|
||||
}
|
||||
|
||||
if (err.data?.code === "PARSE_ERROR" || err.data?.code === "BAD_REQUEST") {
|
||||
message = `${err.data.code}: ${err.message}`;
|
||||
message = `${err.data.code}: ${t(err.message)}`;
|
||||
}
|
||||
|
||||
if (message) {
|
||||
showToast(message, "error");
|
||||
} else {
|
||||
showToast(err.message, "error");
|
||||
}
|
||||
showToast(message ? t(message) : t(err.message), "error");
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -339,6 +339,11 @@
|
||||
"cancelling_event_recurring": "The event is one instance of a recurring event.",
|
||||
"cancelling_all_recurring": "These are all remaining instances in the recurring event.",
|
||||
"error_with_status_code_occured": "An error with status code {{status}} occurred.",
|
||||
"error_event_type_url_duplicate": "An event type with this URL already exists.",
|
||||
"error_event_type_unauthorized_create": "You are not able to create this event",
|
||||
"error_event_type_unauthorized_update": "You are not able to edit this event",
|
||||
"error_workflow_unauthorized_create": "You are not able to create this workflow",
|
||||
"error_schedule_unauthorized_create": "You are not able to create this schedule",
|
||||
"booking_already_cancelled": "This booking was already canceled",
|
||||
"booking_already_accepted_rejected": "This booking was already accepted or rejected",
|
||||
"go_back_home": "Go back home",
|
||||
|
||||
Reference in new issue
Block a user