Skip to content

Commit

Permalink
fix :added lanuch sparrow button of workspace/[#2173]
Browse files Browse the repository at this point in the history
  • Loading branch information
aakashreddy-p committed Dec 24, 2024
1 parent c86b4f8 commit 81c993a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/@sparrow-web/src/pages/Teams/Teams.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
let isExpandLoginButton = false;
function launchSparrowWebApp() {
const launchSparrowWebApp = () => {
let appDetected = false;
// Handle when window loses focus (app opens)
Expand All @@ -139,7 +139,7 @@
isPopupOpen = true;
}
}, 500);
}
};
let openTeamData: TeamDocType;
openTeam.subscribe((_team) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,9 @@
cw.unsubscribe();
});
let isPopupOpen = false;
let isLaunchAppModalOpen = false;
function launchSparrowWebApp() {
const launchSparrowWebApp = () => {
let appDetected = false;
// Handle when window loses focus (app opens)
Expand All @@ -444,10 +444,10 @@
// Only show popup if app wasn't detected
if (!appDetected) {
isPopupOpen = true;
isLaunchAppModalOpen = true;
}
}, 500);
}
};
</script>

<Motion {...pagesMotion} let:motion>
Expand Down Expand Up @@ -899,9 +899,9 @@
type="dark"
width="45%"
zIndex={1000}
isOpen={isPopupOpen}
isOpen={isLaunchAppModalOpen}
handleModalState={() => {
isPopupOpen = false;
isLaunchAppModalOpen = false;
}}
>
<DownloadApp />
Expand Down

0 comments on commit 81c993a

Please sign in to comment.