web/flows: only show user info when applicable

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-11-17 19:02:11 +01:00
parent 3f30ef624e
commit d785edbbe3
1 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@ export class AccessDeniedStage extends BaseStage<
</header>
<div class="pf-c-login__main-body">
<form class="pf-c-form">
${this.challenge.pendingUser ? html`
<ak-form-static
class="pf-c-form__group"
userAvatar="${this.challenge.pendingUserAvatar}"
@ -69,7 +70,7 @@ export class AccessDeniedStage extends BaseStage<
>${t`Not you?`}</a
>
</div>
</ak-form-static>
</ak-form-static>` : html``}
<div class="pf-c-form__group">
<p class="big-icon">
<i class="pf-icon pf-icon-error-circle-o"></i>