This commit is contained in:
Jacob Overgaard
2022-05-17 13:45:13 +02:00
2 changed files with 10 additions and 8 deletions

View File

@@ -60,7 +60,7 @@ export class UmbLogin extends LitElement {
'Happy wonderful Wednesday',
'Happy thunderous Thursday',
'Happy funky Friday',
'Happy Caturday',
'Happy Saturday',
];
@state()

View File

@@ -43,14 +43,16 @@ export class UmbApp extends LitElement {
this._getUser();
};
private _renderBackoffice = () => html`hej`;
private _renderAuth = () => html`
<umb-auth-layout>
<umb-login @login=${this._handleLogin}></umb-login>
</umb-auth-layout>
`;
render() {
return html`
${this._authorized
? html`<umb-auth-layout>
<umb-login @login=${this._handleLogin}></umb-login>
</umb-auth-layout>`
: html`hej`}
`;
return html` ${this._authorized ? this._renderBackoffice() : this._renderAuth()} `;
}
}