IO-889 Document Upload notification and file list clear

This commit is contained in:
Patrick Fic
2021-04-13 08:32:38 -07:00
parent 4c0cde23b2
commit 12609d54ca
4 changed files with 20 additions and 5 deletions

View File

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