feat(web): inline status-aware errors on term/authority edit rows + delete dialog (#63)

This commit is contained in:
2026-06-08 17:27:02 +02:00
parent dd131ee740
commit 6e02ac874f
5 changed files with 62 additions and 4 deletions
+2 -2
View File
@@ -441,7 +441,7 @@ export function useUpdateTerm() {
if (response.status !== 204) throw new HttpError(response.status);
},
onSuccess: (_d, { vocabularyId }) => qc.invalidateQueries({ queryKey: ["terms", vocabularyId] }),
meta: { successMessage: "toast.saved" },
meta: { successMessage: "toast.saved", suppressErrorToast: true },
});
}
@@ -518,7 +518,7 @@ export function useUpdateAuthority() {
if (response.status !== 204) throw new HttpError(response.status);
},
onSuccess: (_d, { kind }) => qc.invalidateQueries({ queryKey: ["authorities", kind] }),
meta: { successMessage: "toast.saved" },
meta: { successMessage: "toast.saved", suppressErrorToast: true },
});
}