diff --git a/public/static/locales/en/data.json b/public/static/locales/en/data.json index 762074cad..ef3906abd 100644 --- a/public/static/locales/en/data.json +++ b/public/static/locales/en/data.json @@ -9,6 +9,7 @@ "asyncDataDeletePending": "Deletion in progress. You will be notified when completed.", "asyncDataEmptyTrashPending": "Emptying trash. You will be notified when completed.", "asyncMovePending": "Move in progress. You will be notified when completed.", + "asyncPathListPending": "Path List creation in progress. You will be notified when completed.", "asyncRenamePending": "Rename in progress. You will be notified when completed.", "asyncDataRestorePending": "Restoring requested item(s). You will be notified when completed.", "automateCreateHtPathList": "Generate HT analysis path list", diff --git a/src/components/data/PathListAutomation.js b/src/components/data/PathListAutomation.js index 5a3036cfe..489b2c255 100644 --- a/src/components/data/PathListAutomation.js +++ b/src/components/data/PathListAutomation.js @@ -16,6 +16,9 @@ import buildID from "components/utils/DebugIDUtil"; import FormTextField from "components/forms/FormTextField"; import FormSwitch from "components/forms/FormSwitch"; +import { announce } from "components/announcer/CyVerseAnnouncer"; +import { INFO } from "components/announcer/AnnouncerConstants"; + import SaveAsField from "./SaveAsField"; import ids from "./ids"; import { validateDiskResourceName } from "./utils"; @@ -100,6 +103,12 @@ export default function PathListAutomation(props) { { onSuccess: (data) => { setCreatePathListError(null); + if (data.async_task_id) { + announce({ + text: t("asyncPathListPending"), + variant: INFO, + }); + } onCreatePathList(data?.file?.id, data?.file?.path); }, onError: (error, { onError }) => {