Merge branch 'main' of https://github.com/umbraco/Umbraco.CMS.Backoffice
This commit is contained in:
@@ -60,7 +60,7 @@ export class UmbLogin extends LitElement {
|
||||
'Happy wonderful Wednesday',
|
||||
'Happy thunderous Thursday',
|
||||
'Happy funky Friday',
|
||||
'Happy Caturday',
|
||||
'Happy Saturday',
|
||||
];
|
||||
|
||||
@state()
|
||||
|
||||
@@ -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()} `;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user