From 429af3058ec30dc6aaef8a15d3d45a60f576fd34 Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Tue, 3 Dec 2024 12:59:23 -0700 Subject: [PATCH 1/2] Reset hasLaunched after closing the instant launch dialog, so it can be reopened to launch again. --- src/components/instantlaunches/InstantLaunchButtonWrapper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/instantlaunches/InstantLaunchButtonWrapper.js b/src/components/instantlaunches/InstantLaunchButtonWrapper.js index c31280a0d..ac6e106cb 100644 --- a/src/components/instantlaunches/InstantLaunchButtonWrapper.js +++ b/src/components/instantlaunches/InstantLaunchButtonWrapper.js @@ -74,6 +74,8 @@ function InstantLaunchButtonWrapper(props) { window.open(`${getHost()}${ilUrl}`); setIlUrl(null); setOpen(false); + // reset the value so after it closes you can launch a second by reopening + setHasLaunched(false); if (autolaunch) { // go to the analysis landing, not keeping this page in browser history router.replace(landingUrl); From 4b529ad8df8789de545054b0a701b108ad5d15ee Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Tue, 3 Dec 2024 13:21:04 -0700 Subject: [PATCH 2/2] only show the 'with data' string when the provided resource has a path to show --- src/components/instantlaunches/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/instantlaunches/index.js b/src/components/instantlaunches/index.js index 58f498af4..1f1fe95e2 100644 --- a/src/components/instantlaunches/index.js +++ b/src/components/instantlaunches/index.js @@ -63,7 +63,7 @@ export const InstantLaunchSubmissionDialog = ({ {appInfo && ( - {resource + {resource && resource.path ? t("launchingAppWithData", { appName: appInfo.name, path: resource.path,