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:
parent
8e83209631
commit
c77f804b77
|
@ -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();
|
||||
|
|
|
@ -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 })
|
||||
|
|
Reference in New Issue