diff --git a/src/App.svelte b/src/App.svelte index 95bd213..eaf3dd8 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -12,7 +12,7 @@ UserSettingsSolid, } from "flowbite-svelte-icons"; import ezppLogo from "../public/favicon.png"; - import { currentPage, currentUser } from "./storage/localStore"; + import { currentPage, currentUser, launching } from "./storage/localStore"; import { Page } from "./consts/pages"; import Login from "./pages/Login.svelte"; import Launch from "./pages/Launch.svelte"; @@ -65,7 +65,9 @@ currentPage.set(Page.Settings)} + on:click={() => { + if (!$launching) currentPage.set(Page.Settings); + }} > Settings @@ -74,7 +76,9 @@ {#if loggedIn} { + if (!$launching) logout(); + }} > currentPage.set(Page.Login)} + on:click={() => { + if (!$launching) currentPage.set(Page.Login); + }} >