fix: show telegram login without email auth
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user