IO-2043 Add LMS bill upload notification.
This commit is contained in:
@@ -2,6 +2,8 @@ import cleanAxios from "../../utils/CleanAxios";
|
|||||||
import { store } from "../../redux/store";
|
import { store } from "../../redux/store";
|
||||||
import { addMediaForJob } from "../../redux/media/media.actions";
|
import { addMediaForJob } from "../../redux/media/media.actions";
|
||||||
import normalizeUrl from "normalize-url";
|
import normalizeUrl from "normalize-url";
|
||||||
|
import { notification } from "antd";
|
||||||
|
import i18n from "i18next";
|
||||||
|
|
||||||
export const handleUpload = async ({ ev, context }) => {
|
export const handleUpload = async ({ ev, context }) => {
|
||||||
const { onError, onSuccess, onProgress, file } = ev;
|
const { onError, onSuccess, onProgress, file } = ev;
|
||||||
@@ -45,6 +47,11 @@ export const handleUpload = async ({ ev, context }) => {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
onSuccess && onSuccess(file);
|
onSuccess && onSuccess(file);
|
||||||
|
notification.open({
|
||||||
|
type: "success",
|
||||||
|
key: "docuploadsuccess",
|
||||||
|
message: i18n.t("documents.successes.insert"),
|
||||||
|
});
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
addMediaForJob({
|
addMediaForJob({
|
||||||
jobid,
|
jobid,
|
||||||
|
|||||||
Reference in New Issue
Block a user