mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-14 06:47:00 +10:00
- fixes #2562, add better error messages for duplicate resume slugs
- improvements made to ditgar template - general improvements to all templates with backgrounds - update dependencies and translations - improved print function that handles single page and multi page resumes
This commit is contained in:
@@ -65,6 +65,11 @@ export function CreateResumeDialog(_: DialogProps<"resume.create">) {
|
||||
closeDialog();
|
||||
},
|
||||
onError: (error) => {
|
||||
if (error.message === "RESUME_SLUG_ALREADY_EXISTS") {
|
||||
toast.error(t`A resume with this slug already exists.`, { id: toastId });
|
||||
return;
|
||||
}
|
||||
|
||||
toast.error(error.message, { id: toastId });
|
||||
},
|
||||
});
|
||||
@@ -169,6 +174,11 @@ export function UpdateResumeDialog({ data }: DialogProps<"resume.update">) {
|
||||
closeDialog();
|
||||
},
|
||||
onError: (error) => {
|
||||
if (error.message === "RESUME_SLUG_ALREADY_EXISTS") {
|
||||
toast.error(t`A resume with this slug already exists.`, { id: toastId });
|
||||
return;
|
||||
}
|
||||
|
||||
toast.error(error.message, { id: toastId });
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user