From 04a5ea703abdd1eaae0f858a816d712ec1b10729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 21 Jun 2024 11:34:11 +0200 Subject: [PATCH] correct app-element --- .../src/apps/app/app-error.element.ts | 68 ++++++++++--------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/apps/app/app-error.element.ts b/src/Umbraco.Web.UI.Client/src/apps/app/app-error.element.ts index 688eee86fd..9aa8a3da8c 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/app/app-error.element.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/app/app-error.element.ts @@ -167,41 +167,43 @@ export class UmbAppErrorElement extends UmbLitElement { return nothing; } - render = () => html` -
+ override render() { + return html` +
- + -
- - ${this.hideBackButton - ? nothing - : html` - (location.href = '')}> - `} -
- ${this.errorHeadline - ? this.errorHeadline - : html` An unknown failure has occured `} -
-
${this.errorMessage}
- ${this.error - ? html` -
- Details - ${this.#renderError(this.error)} -
- ` - : nothing} -
-
- `; +
+ + ${this.hideBackButton + ? nothing + : html` + (location.href = '')}> + `} +
+ ${this.errorHeadline + ? this.errorHeadline + : html` An unknown failure has occured `} +
+
${this.errorMessage}
+ ${this.error + ? html` +
+ Details + ${this.#renderError(this.error)} +
+ ` + : nothing} +
+
+ `; + } static override styles = [ UmbTextStyles,