From 71d144a67e109cdf826ea1ba0de22d258499550b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 18 Nov 2022 21:19:06 +0100 Subject: [PATCH] web/flows: always hide static user info when its not set in the flow Signed-off-by: Jens Langhammer --- web/src/flow/FormStatic.ts | 5 ++++- web/src/flow/stages/access_denied/AccessDeniedStage.ts | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/web/src/flow/FormStatic.ts b/web/src/flow/FormStatic.ts index 8ba7a8302..df9a8d674 100644 --- a/web/src/flow/FormStatic.ts +++ b/web/src/flow/FormStatic.ts @@ -14,7 +14,7 @@ export class FormStatic extends AKElement { userAvatar?: string; @property() - user = ""; + user?: string; static get styles(): CSSResult[] { return [ @@ -44,6 +44,9 @@ export class FormStatic extends AKElement { } render(): TemplateResult { + if (!this.user) { + return html``; + } return html`
diff --git a/web/src/flow/stages/access_denied/AccessDeniedStage.ts b/web/src/flow/stages/access_denied/AccessDeniedStage.ts index 437dcd7a2..cb74205f8 100644 --- a/web/src/flow/stages/access_denied/AccessDeniedStage.ts +++ b/web/src/flow/stages/access_denied/AccessDeniedStage.ts @@ -59,7 +59,6 @@ export class AccessDeniedStage extends BaseStage< - ` : html``} +