Added document delete confirmation IO-611

This commit is contained in:
Patrick Fic
2021-02-04 15:59:57 -08:00
parent 882aa371c9
commit e1aaa24aa5

View File

@@ -56,6 +56,9 @@ export default function JobsDocumentsDeleteButton({
.then((response) => {
deleteDocument({ variables: { id: image.id } })
.then((r) => {
notification["success"]({
message: t("documents.successes.delete"),
});
if (deletionCallback) deletionCallback();
})
.catch((error) => {