feature/IO-3499-React-19: Bug Fixes / Checkpoint
This commit is contained in:
@@ -58,7 +58,7 @@ export function JobsDocumentsImgproxyGalleryReassign({ bodyshop, galleryImages,
|
||||
if (shouldPreventTransfer) {
|
||||
notification.error({
|
||||
key: "cannotuploaddocuments",
|
||||
message: t("documents.labels.reassign_limitexceeded_title"),
|
||||
title: t("documents.labels.reassign_limitexceeded_title"),
|
||||
description: t("documents.labels.reassign_limitexceeded")
|
||||
});
|
||||
setLoading(false);
|
||||
@@ -86,7 +86,7 @@ export function JobsDocumentsImgproxyGalleryReassign({ bodyshop, galleryImages,
|
||||
|
||||
if (res.errors) {
|
||||
notification.error({
|
||||
message: t("documents.errors.updating", {
|
||||
title: t("documents.errors.updating", {
|
||||
message: JSON.stringify(res.errors)
|
||||
})
|
||||
});
|
||||
|
||||
@@ -35,21 +35,21 @@ export default function JobsDocumentsImgproxyDeleteButton({ galleryImages, delet
|
||||
|
||||
if (res.data.error) {
|
||||
notification.error({
|
||||
message: t("documents.errors.deleting", {
|
||||
title: t("documents.errors.deleting", {
|
||||
error: JSON.stringify(res.data.error.response.errors)
|
||||
})
|
||||
});
|
||||
} else {
|
||||
notification.success({
|
||||
key: "docdeletedsuccesfully",
|
||||
message: t("documents.successes.delete")
|
||||
title: t("documents.successes.delete")
|
||||
});
|
||||
|
||||
if (isFunction(deletionCallback)) deletionCallback();
|
||||
}
|
||||
} catch (error) {
|
||||
notification.error({
|
||||
message: t("documents.errors.deleting", {
|
||||
title: t("documents.errors.deleting", {
|
||||
error: error.message
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user