mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix header of config entry system options dialog (#23455)
Fix config entry system options dialog header
This commit is contained in:
parent
44e26c925b
commit
5c7fe04562
@ -3,7 +3,7 @@ import type { CSSResultGroup } from "lit";
|
|||||||
import { css, html, LitElement, nothing } from "lit";
|
import { css, html, LitElement, nothing } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { fireEvent } from "../../common/dom/fire_event";
|
import { fireEvent } from "../../common/dom/fire_event";
|
||||||
import "../../components/ha-dialog";
|
import { createCloseHeading } from "../../components/ha-dialog";
|
||||||
import "../../components/ha-formfield";
|
import "../../components/ha-formfield";
|
||||||
import "../../components/ha-switch";
|
import "../../components/ha-switch";
|
||||||
import type { HaSwitch } from "../../components/ha-switch";
|
import type { HaSwitch } from "../../components/ha-switch";
|
||||||
@ -52,14 +52,14 @@ class DialogConfigEntrySystemOptions extends LitElement {
|
|||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@closed=${this.closeDialog}
|
@closed=${this.closeDialog}
|
||||||
.heading=${this.hass.localize(
|
.heading=${createCloseHeading(
|
||||||
"ui.dialogs.config_entry_system_options.title",
|
this.hass,
|
||||||
{
|
this.hass.localize("ui.dialogs.config_entry_system_options.title", {
|
||||||
integration:
|
integration:
|
||||||
this.hass.localize(
|
this.hass.localize(
|
||||||
`component.${this._params.entry.domain}.title`
|
`component.${this._params.entry.domain}.title`
|
||||||
) || this._params.entry.domain,
|
) || this._params.entry.domain,
|
||||||
}
|
})
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
${this._error ? html` <div class="error">${this._error}</div> ` : ""}
|
${this._error ? html` <div class="error">${this._error}</div> ` : ""}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user