From ad2c91db4d536f2822d3961fd9089b83dd95b2b3 Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Thu, 11 Jan 2024 16:17:32 +0100 Subject: [PATCH] disable futher actions when launching --- src/App.svelte | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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); + }} >