diff --git a/src/lib/Navbar.svelte b/src/lib/Navbar.svelte index 5377093..e623f37 100644 --- a/src/lib/Navbar.svelte +++ b/src/lib/Navbar.svelte @@ -10,6 +10,8 @@ $: myDecksActive = loc === '/' || loc === '/decks/new' || /^\/decks\/[^/]+\/edit$/.test(loc) || $navContext === 'my-decks'; $: communityActive = loc === '/community' || loc.startsWith('/community/') || $navContext === 'community'; + const registrationDisabled = import.meta.env.VITE_DISABLE_REGISTRATION === 'true'; + let showPopup = false; let mode = 'login'; // 'login' | 'register' let email = ''; @@ -206,14 +208,16 @@ > Log in - + {#if !registrationDisabled} + + {/if} {#if registerSuccess && !$auth.user} @@ -250,7 +254,7 @@ /> {#if $auth.error}
{$auth.error}
- {#if mode === 'login'} + {#if mode === 'login' && !registrationDisabled}Do you have an account? .