Skip to content

Commit

Permalink
Merge pull request #609 from ianmcorvidae/instantlaunch-hotfix-2
Browse files Browse the repository at this point in the history
Reset hasLaunched after closing the instant launch dialog
  • Loading branch information
ianmcorvidae authored Dec 5, 2024
2 parents b26b434 + 4b529ad commit 6e9c867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/instantlaunches/InstantLaunchButtonWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/components/instantlaunches/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const InstantLaunchSubmissionDialog = ({
<DialogContent>
{appInfo && (
<Typography variant="body1">
{resource
{resource && resource.path
? t("launchingAppWithData", {
appName: appInfo.name,
path: resource.path,
Expand Down

0 comments on commit 6e9c867

Please sign in to comment.