Skip to content

Commit cda76c1

Browse files
committed
correct app-element
1 parent fe227fd commit cda76c1

File tree

1 file changed

+37
-35
lines changed

1 file changed

+37
-35
lines changed

src/apps/app/app-error.element.ts

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -167,41 +167,43 @@ export class UmbAppErrorElement extends UmbLitElement {
167167
return nothing;
168168
}
169169

170-
render = () => html`
171-
<div id="background"></div>
172-
173-
<div id="logo" aria-hidden="true">
174-
<img src="/umbraco/backoffice/assets/umbraco_logomark_white.svg" alt="Umbraco" />
175-
</div>
176-
177-
<div id="container" class="uui-text">
178-
<uui-box id="box" headline-variant="h1">
179-
${this.hideBackButton
180-
? nothing
181-
: html`
182-
<uui-button
183-
slot="header-actions"
184-
label=${this.localize.term('general_back')}
185-
look="secondary"
186-
@click=${() => (location.href = '')}></uui-button>
187-
`}
188-
<div slot="headline">
189-
${this.errorHeadline
190-
? this.errorHeadline
191-
: html` <umb-localize key="errors_defaultError">An unknown failure has occured</umb-localize> `}
192-
</div>
193-
<div id="message">${this.errorMessage}</div>
194-
${this.error
195-
? html`
196-
<details>
197-
<summary><umb-localize key="general_details">Details</umb-localize></summary>
198-
${this.#renderError(this.error)}
199-
</details>
200-
`
201-
: nothing}
202-
</uui-box>
203-
</div>
204-
`;
170+
override render() {
171+
return html`
172+
<div id="background"></div>
173+
174+
<div id="logo" aria-hidden="true">
175+
<img src="/umbraco/backoffice/assets/umbraco_logomark_white.svg" alt="Umbraco" />
176+
</div>
177+
178+
<div id="container" class="uui-text">
179+
<uui-box id="box" headline-variant="h1">
180+
${this.hideBackButton
181+
? nothing
182+
: html`
183+
<uui-button
184+
slot="header-actions"
185+
label=${this.localize.term('general_back')}
186+
look="secondary"
187+
@click=${() => (location.href = '')}></uui-button>
188+
`}
189+
<div slot="headline">
190+
${this.errorHeadline
191+
? this.errorHeadline
192+
: html` <umb-localize key="errors_defaultError">An unknown failure has occured</umb-localize> `}
193+
</div>
194+
<div id="message">${this.errorMessage}</div>
195+
${this.error
196+
? html`
197+
<details>
198+
<summary><umb-localize key="general_details">Details</umb-localize></summary>
199+
${this.#renderError(this.error)}
200+
</details>
201+
`
202+
: nothing}
203+
</uui-box>
204+
</div>
205+
`;
206+
}
205207

206208
static override styles = [
207209
UmbTextStyles,

0 commit comments

Comments
 (0)