fix: show telegram login without email auth

This commit is contained in:
3252a8
2026-05-29 23:09:49 +03:00
parent e27886e15d
commit 7e7a2e58a2
+7 -2
View File
@@ -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;
</script>
@@ -149,7 +150,8 @@
{authStatus}
</StatusMessage>
{/if}
{:else if CFG.emailAuthEnabled !== false}
{:else}
{#if emailAuthEnabled}
<div class="auth-pane">
<div class="auth-email-stack">
<div class="field-error-wrap">
@@ -189,6 +191,7 @@
</div>
</div>
<div class="or-line"><span></span>{t("wa_or")}<span></span></div>
{/if}
<div class="auth-pane">
<Button
variant="telegram"
@@ -207,6 +210,7 @@
</span>
</Button>
</div>
{#if emailAuthEnabled}
<div class="password-switch-stack">
<div class="password-switch-divider" aria-hidden="true"></div>
<button
@@ -219,6 +223,7 @@
{t("wa_login_use_password")}
</button>
</div>
{/if}
{#if !telegramLoginChecking && (authStatus || telegramLoginUnavailableMessage)}
<StatusMessage
error={authIsError || Boolean(telegramLoginUnavailableMessage)}