From 9f856aa443f50776c803b264c6c0be64cae916c5 Mon Sep 17 00:00:00 2001 From: lgmarchi Date: Thu, 3 Oct 2024 12:30:52 -0300 Subject: [PATCH] Hide change users button as well and just show it if user is on devmode --- src/lib/layouts/login/Entrypoint.svelte | 8 +++++--- src/lib/layouts/login/Unlock.svelte | 9 ++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/lib/layouts/login/Entrypoint.svelte b/src/lib/layouts/login/Entrypoint.svelte index beda3c1c0..51bb5b7e7 100644 --- a/src/lib/layouts/login/Entrypoint.svelte +++ b/src/lib/layouts/login/Entrypoint.svelte @@ -73,9 +73,11 @@
- + {#if get(SettingsStore.state).devmode} + + {/if} diff --git a/src/lib/layouts/login/Unlock.svelte b/src/lib/layouts/login/Unlock.svelte index 1f79eec8a..1d3757bc6 100644 --- a/src/lib/layouts/login/Unlock.svelte +++ b/src/lib/layouts/login/Unlock.svelte @@ -13,6 +13,7 @@ import { Controls } from "$lib/layouts" import { AuthStore } from "$lib/state/auth" import { createEventDispatcher } from "svelte" + import { SettingsStore } from "$lib/state" export let create: boolean = false @@ -76,9 +77,11 @@
- + {#if get(SettingsStore.state).devmode} + + {/if}