From 949d48b2a033a557349701b2813313c3eef4c125 Mon Sep 17 00:00:00 2001 From: vladyslavtk Date: Fri, 29 Sep 2023 18:27:35 +0300 Subject: [PATCH] Fix login refresh --- ui/src/elements/ngm-auth.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/elements/ngm-auth.ts b/ui/src/elements/ngm-auth.ts index a6cf43d50..001c076af 100644 --- a/ui/src/elements/ngm-auth.ts +++ b/ui/src/elements/ngm-auth.ts @@ -1,11 +1,11 @@ import {html} from 'lit'; +import type {AuthUser} from '../auth'; import Auth from '../auth'; import i18next from 'i18next'; import {LitElementI18n} from '../i18n.js'; import auth from '../store/auth'; import {classMap} from 'lit/directives/class-map.js'; -import {customElement, property} from 'lit/decorators.js'; -import type {AuthUser} from '../auth'; +import {customElement, property, state} from 'lit/decorators.js'; /** @@ -15,7 +15,7 @@ import type {AuthUser} from '../auth'; export class NgmAuth extends LitElementI18n { @property({type: String}) endpoint: string | undefined; @property({type: String}) clientId: string | undefined; - private user: AuthUser | null = null; + @state() user: AuthUser | null = null; private popup: Window | null = null; constructor() {