fix(database): authorize soft-delete by agent org + add onError + guard bulk-restore lists

This commit is contained in:
charles-gauthereau
2026-07-05 18:31:52 +02:00
parent 20636bf6f2
commit cd72cfbff4
3 changed files with 75 additions and 2 deletions
@@ -24,6 +24,9 @@ export const DatabaseDeleteButton = (props: DatabaseDeleteButtonProps) => {
toast.error(result.data?.actionError?.message || "Unknown error occurred.");
}
},
onError: () => {
toast.error("Failed to delete database.");
},
});
return (