web/flows: always hide static user info when its not set in the flow

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-11-18 21:19:06 +01:00
parent cc3ab141e5
commit 71d144a67e
2 changed files with 5 additions and 3 deletions

View File

@ -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`
<div class="form-control-static">
<div class="avatar">