- 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:
Amruth Pillai
2026-01-23 23:31:24 +01:00
parent ed74fb67f2
commit 4e73a81d4b
96 changed files with 3996 additions and 3418 deletions
+10
View File
@@ -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 });
},
});