feature/IO-3499-React-19: Bug Fixes / Checkpoint

This commit is contained in:
Dave
2026-01-13 22:28:43 -05:00
parent 7bdfbfabe9
commit 53d556a621
171 changed files with 1128 additions and 954 deletions

View File

@@ -67,10 +67,9 @@ export function DocumentsUploadComponent({
//Check to see if old files plus newly uploaded ones will be too much.
if (shouldStopUpload) {
notification.open({
notification.error({
key: "cannotuploaddocuments",
type: "error",
message: t("documents.labels.upload_limitexceeded_title"),
title: t("documents.labels.upload_limitexceeded_title"),
description: t("documents.labels.upload_limitexceeded")
});
return Upload.LIST_IGNORE;

View File

@@ -58,8 +58,8 @@ export const uploadToCloudinary = async (
if (signedURLResponse.status !== 200) {
if (onError) onError(signedURLResponse.statusText);
notification["error"]({
message: i18n.t("documents.errors.getpresignurl", {
notification.error({
title: i18n.t("documents.errors.getpresignurl", {
message: signedURLResponse.statusText
})
});
@@ -110,8 +110,8 @@ export const uploadToCloudinary = async (
// NO OP
}
notification["error"]({
message: i18n.t("documents.errors.insert", {
notification.error({
title: i18n.t("documents.errors.insert", {
message: cloudinaryUploadResponse.statusText
})
});
@@ -155,18 +155,17 @@ export const uploadToCloudinary = async (
status: "done",
key: documentInsert.data.insert_documents.returning[0].key
});
notification.open({
type: "success",
notification.success({
key: "docuploadsuccess",
message: i18n.t("documents.successes.insert")
title: i18n.t("documents.successes.insert")
});
if (callback) {
callback();
}
} else {
if (onError) onError(JSON.stringify(documentInsert.errors));
notification["error"]({
message: i18n.t("documents.errors.insert", {
notification.error({
title: i18n.t("documents.errors.insert", {
message: JSON.stringify(documentInsert.errors)
})
});