web/user: fix user details not rendering when loading to a different user settings tab and then switching

closes #1664

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-22 20:13:52 +01:00
parent 8e83209631
commit c77f804b77
2 changed files with 3 additions and 3 deletions

View File

@ -30,6 +30,8 @@ export class APIError extends Error {
@customElement("ak-form")
export class Form<T> extends LitElement {
viewportCheck = true;
@property()
successMessage = "";
@ -274,7 +276,7 @@ export class Form<T> extends LitElement {
}
render(): TemplateResult {
if (!this.isInViewport) {
if (this.viewportCheck && !this.isInViewport) {
return html``;
}
return this.renderVisible();

View File

@ -5,8 +5,6 @@ import { EVENT_REFRESH } from "../../constants";
import { Form } from "./Form";
export abstract class ModelForm<T, PKT extends string | number> extends Form<T> {
viewportCheck = true;
abstract loadInstance(pk: PKT): Promise<T>;
@property({ attribute: false })