Skip to content

Commit

Permalink
add in close window option, fix #183 (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnzrr authored Jun 28, 2024
1 parent a28bd2c commit 5dacc89
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/app/components/navigation/app-launcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ const AppLauncher: React.FC<Props> = ({ toggleOrgPicker }) => {
/>,
];

if (window.opener) {
AppLauncherItems.push(
<ApplicationLauncherItem
key="close"
onClick={() => window.close()}
tooltip={<div>Closes window to return to previous location.</div>}
title="Close the window."
>
Close window
</ApplicationLauncherItem>
);
}

return (
<ApplicationLauncher
onSelect={onSelect}
Expand Down

0 comments on commit 5dacc89

Please sign in to comment.