fix: show telegram login without email auth
This commit is contained in:
@@ -45,7 +45,8 @@
|
|||||||
|
|
||||||
let authPanelHeight = 0;
|
let authPanelHeight = 0;
|
||||||
|
|
||||||
$: passwordModeActive = Boolean(passwordLoginMode && CFG.emailAuthEnabled !== false);
|
$: emailAuthEnabled = CFG.emailAuthEnabled !== false;
|
||||||
|
$: passwordModeActive = Boolean(passwordLoginMode && emailAuthEnabled);
|
||||||
$: authCardHeight = authPanelHeight ? `${authPanelHeight}px` : undefined;
|
$: authCardHeight = authPanelHeight ? `${authPanelHeight}px` : undefined;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -149,7 +150,8 @@
|
|||||||
{authStatus}
|
{authStatus}
|
||||||
</StatusMessage>
|
</StatusMessage>
|
||||||
{/if}
|
{/if}
|
||||||
{:else if CFG.emailAuthEnabled !== false}
|
{:else}
|
||||||
|
{#if emailAuthEnabled}
|
||||||
<div class="auth-pane">
|
<div class="auth-pane">
|
||||||
<div class="auth-email-stack">
|
<div class="auth-email-stack">
|
||||||
<div class="field-error-wrap">
|
<div class="field-error-wrap">
|
||||||
@@ -189,6 +191,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="or-line"><span></span>{t("wa_or")}<span></span></div>
|
<div class="or-line"><span></span>{t("wa_or")}<span></span></div>
|
||||||
|
{/if}
|
||||||
<div class="auth-pane">
|
<div class="auth-pane">
|
||||||
<Button
|
<Button
|
||||||
variant="telegram"
|
variant="telegram"
|
||||||
@@ -207,6 +210,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
{#if emailAuthEnabled}
|
||||||
<div class="password-switch-stack">
|
<div class="password-switch-stack">
|
||||||
<div class="password-switch-divider" aria-hidden="true"></div>
|
<div class="password-switch-divider" aria-hidden="true"></div>
|
||||||
<button
|
<button
|
||||||
@@ -219,6 +223,7 @@
|
|||||||
{t("wa_login_use_password")}
|
{t("wa_login_use_password")}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
{#if !telegramLoginChecking && (authStatus || telegramLoginUnavailableMessage)}
|
{#if !telegramLoginChecking && (authStatus || telegramLoginUnavailableMessage)}
|
||||||
<StatusMessage
|
<StatusMessage
|
||||||
error={authIsError || Boolean(telegramLoginUnavailableMessage)}
|
error={authIsError || Boolean(telegramLoginUnavailableMessage)}
|
||||||
|
|||||||
Reference in New Issue
Block a user