correct app-element
This commit is contained in:
@@ -167,41 +167,43 @@ export class UmbAppErrorElement extends UmbLitElement {
|
||||
return nothing;
|
||||
}
|
||||
|
||||
render = () => html`
|
||||
<div id="background"></div>
|
||||
override render() {
|
||||
return html`
|
||||
<div id="background"></div>
|
||||
|
||||
<div id="logo" aria-hidden="true">
|
||||
<img src="/umbraco/backoffice/assets/umbraco_logomark_white.svg" alt="Umbraco" />
|
||||
</div>
|
||||
<div id="logo" aria-hidden="true">
|
||||
<img src="/umbraco/backoffice/assets/umbraco_logomark_white.svg" alt="Umbraco" />
|
||||
</div>
|
||||
|
||||
<div id="container" class="uui-text">
|
||||
<uui-box id="box" headline-variant="h1">
|
||||
${this.hideBackButton
|
||||
? nothing
|
||||
: html`
|
||||
<uui-button
|
||||
slot="header-actions"
|
||||
label=${this.localize.term('general_back')}
|
||||
look="secondary"
|
||||
@click=${() => (location.href = '')}></uui-button>
|
||||
`}
|
||||
<div slot="headline">
|
||||
${this.errorHeadline
|
||||
? this.errorHeadline
|
||||
: html` <umb-localize key="errors_defaultError">An unknown failure has occured</umb-localize> `}
|
||||
</div>
|
||||
<div id="message">${this.errorMessage}</div>
|
||||
${this.error
|
||||
? html`
|
||||
<details>
|
||||
<summary><umb-localize key="general_details">Details</umb-localize></summary>
|
||||
${this.#renderError(this.error)}
|
||||
</details>
|
||||
`
|
||||
: nothing}
|
||||
</uui-box>
|
||||
</div>
|
||||
`;
|
||||
<div id="container" class="uui-text">
|
||||
<uui-box id="box" headline-variant="h1">
|
||||
${this.hideBackButton
|
||||
? nothing
|
||||
: html`
|
||||
<uui-button
|
||||
slot="header-actions"
|
||||
label=${this.localize.term('general_back')}
|
||||
look="secondary"
|
||||
@click=${() => (location.href = '')}></uui-button>
|
||||
`}
|
||||
<div slot="headline">
|
||||
${this.errorHeadline
|
||||
? this.errorHeadline
|
||||
: html` <umb-localize key="errors_defaultError">An unknown failure has occured</umb-localize> `}
|
||||
</div>
|
||||
<div id="message">${this.errorMessage}</div>
|
||||
${this.error
|
||||
? html`
|
||||
<details>
|
||||
<summary><umb-localize key="general_details">Details</umb-localize></summary>
|
||||
${this.#renderError(this.error)}
|
||||
</details>
|
||||
`
|
||||
: nothing}
|
||||
</uui-box>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
static override styles = [
|
||||
UmbTextStyles,
|
||||
|
||||
Reference in New Issue
Block a user