From 9792773cf01e63200f3fbab50687dacd1a20c8dd Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 13 Sep 2022 15:26:55 -0700 Subject: [PATCH] IO-2043 Add LMS bill upload notification. --- .../documents-local-upload.utility.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/components/documents-local-upload/documents-local-upload.utility.js b/client/src/components/documents-local-upload/documents-local-upload.utility.js index 1b36a9275..ad53b7f4a 100644 --- a/client/src/components/documents-local-upload/documents-local-upload.utility.js +++ b/client/src/components/documents-local-upload/documents-local-upload.utility.js @@ -2,6 +2,8 @@ import cleanAxios from "../../utils/CleanAxios"; import { store } from "../../redux/store"; import { addMediaForJob } from "../../redux/media/media.actions"; import normalizeUrl from "normalize-url"; +import { notification } from "antd"; +import i18n from "i18next"; export const handleUpload = async ({ ev, context }) => { const { onError, onSuccess, onProgress, file } = ev; @@ -45,6 +47,11 @@ export const handleUpload = async ({ ev, context }) => { } } else { onSuccess && onSuccess(file); + notification.open({ + type: "success", + key: "docuploadsuccess", + message: i18n.t("documents.successes.insert"), + }); store.dispatch( addMediaForJob({ jobid,