disable futher actions when launching
This commit is contained in:
parent
3588203527
commit
ad2c91db4d
|
@ -12,7 +12,7 @@
|
||||||
UserSettingsSolid,
|
UserSettingsSolid,
|
||||||
} from "flowbite-svelte-icons";
|
} from "flowbite-svelte-icons";
|
||||||
import ezppLogo from "../public/favicon.png";
|
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 { Page } from "./consts/pages";
|
||||||
import Login from "./pages/Login.svelte";
|
import Login from "./pages/Login.svelte";
|
||||||
import Launch from "./pages/Launch.svelte";
|
import Launch from "./pages/Launch.svelte";
|
||||||
|
@ -65,7 +65,9 @@
|
||||||
</DropdownHeader>
|
</DropdownHeader>
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
class="flex flex-row gap-2 border-0 dark:!bg-gray-700 dark:active:!bg-gray-900 dark:hover:!bg-gray-800 transition-colors"
|
class="flex flex-row gap-2 border-0 dark:!bg-gray-700 dark:active:!bg-gray-900 dark:hover:!bg-gray-800 transition-colors"
|
||||||
on:click={() => currentPage.set(Page.Settings)}
|
on:click={() => {
|
||||||
|
if (!$launching) currentPage.set(Page.Settings);
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<UserSettingsSolid class="select-none outline-none border-none" />
|
<UserSettingsSolid class="select-none outline-none border-none" />
|
||||||
Settings
|
Settings
|
||||||
|
@ -74,7 +76,9 @@
|
||||||
{#if loggedIn}
|
{#if loggedIn}
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
class="flex flex-row gap-2 border-0 dark:!bg-gray-700 dark:active:!bg-gray-900 dark:hover:!bg-gray-800 transition-colors"
|
class="flex flex-row gap-2 border-0 dark:!bg-gray-700 dark:active:!bg-gray-900 dark:hover:!bg-gray-800 transition-colors"
|
||||||
on:click={logout}
|
on:click={() => {
|
||||||
|
if (!$launching) logout();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<ArrowRightFromBracketSolid
|
<ArrowRightFromBracketSolid
|
||||||
class="select-none outline-none border-none"
|
class="select-none outline-none border-none"
|
||||||
|
@ -84,7 +88,9 @@
|
||||||
{:else}
|
{:else}
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
class="flex flex-row gap-2 border-0 dark:!bg-gray-700 dark:active:!bg-gray-900 dark:hover:!bg-gray-800 transition-colors"
|
class="flex flex-row gap-2 border-0 dark:!bg-gray-700 dark:active:!bg-gray-900 dark:hover:!bg-gray-800 transition-colors"
|
||||||
on:click={() => currentPage.set(Page.Login)}
|
on:click={() => {
|
||||||
|
if (!$launching) currentPage.set(Page.Login);
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<ArrowRightToBracketSolid
|
<ArrowRightToBracketSolid
|
||||||
class="select-none outline-none border-none"
|
class="select-none outline-none border-none"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user