diff --git a/frontend/src/webapp/auth/AuthScreen.svelte b/frontend/src/webapp/auth/AuthScreen.svelte index 7df26be..a90981a 100644 --- a/frontend/src/webapp/auth/AuthScreen.svelte +++ b/frontend/src/webapp/auth/AuthScreen.svelte @@ -45,7 +45,8 @@ let authPanelHeight = 0; - $: passwordModeActive = Boolean(passwordLoginMode && CFG.emailAuthEnabled !== false); + $: emailAuthEnabled = CFG.emailAuthEnabled !== false; + $: passwordModeActive = Boolean(passwordLoginMode && emailAuthEnabled); $: authCardHeight = authPanelHeight ? `${authPanelHeight}px` : undefined; @@ -149,46 +150,48 @@ {authStatus} {/if} - {:else if CFG.emailAuthEnabled !== false} -
-
-
- - - {#if loginEmailFieldError} - - +
+
+ + + {#if loginEmailFieldError} + - - {/if} - {#if loginEmailFieldError} - - {loginEmailFieldError} - - {/if} - + + + {/if} + {#if loginEmailFieldError} + + {loginEmailFieldError} + + {/if} + +
+
-
-
-
{t("wa_or")}
+
{t("wa_or")}
+ {/if}
-
- - -
+ {#if emailAuthEnabled} +
+ + +
+ {/if} {#if !telegramLoginChecking && (authStatus || telegramLoginUnavailableMessage)}