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 789d28aeb..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,7 +103,13 @@ export default function PathListAutomation(props) { { onSuccess: (data) => { setCreatePathListError(null); - onCreatePathList(data.file.id, data.file.path); + if (data.async_task_id) { + announce({ + text: t("asyncPathListPending"), + variant: INFO, + }); + } + onCreatePathList(data?.file?.id, data?.file?.path); }, onError: (error, { onError }) => { let errMsg = null; diff --git a/src/components/data/toolbar/DataDotMenu.js b/src/components/data/toolbar/DataDotMenu.js index 2c1c84e52..651dd2487 100644 --- a/src/components/data/toolbar/DataDotMenu.js +++ b/src/components/data/toolbar/DataDotMenu.js @@ -458,7 +458,9 @@ function DataDotMenu(props) { onClose={() => setPathListDlgOpen(false)} onCreatePathList={(id, path) => { setPathListDlgOpen(false); - routeToFile(id, path); + if (id && path) { + routeToFile(id, path); + } }} onCancel={() => setPathListDlgOpen(false)} startingPath={path}