mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 10:26:35 +00:00
Replace closing with closed in dialogs (#9257)
This commit is contained in:
parent
c4a8899780
commit
fa9c6a765a
@ -45,7 +45,7 @@ class HassioRegistriesDialog extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
.open=${this._opened}
|
.open=${this._opened}
|
||||||
@closing=${this.closeDialog}
|
@closed=${this.closeDialog}
|
||||||
scrimClickAction
|
scrimClickAction
|
||||||
escapeKeyAction
|
escapeKeyAction
|
||||||
.heading=${createCloseHeading(
|
.heading=${createCloseHeading(
|
||||||
|
@ -67,7 +67,7 @@ class HassioRepositoriesDialog extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
.open=${this._opened}
|
.open=${this._opened}
|
||||||
@closing=${this.closeDialog}
|
@closed=${this.closeDialog}
|
||||||
scrimClickAction
|
scrimClickAction
|
||||||
escapeKeyAction
|
escapeKeyAction
|
||||||
.heading=${createCloseHeading(
|
.heading=${createCloseHeading(
|
||||||
|
@ -48,7 +48,8 @@ class HassioCreateSnapshotDialog extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@closing=${this.closeDialog}
|
scrimClickAction
|
||||||
|
@closed=${this.closeDialog}
|
||||||
.heading=${createCloseHeading(
|
.heading=${createCloseHeading(
|
||||||
this.hass,
|
this.hass,
|
||||||
this._dialogParams.supervisor.localize("snapshot.create_snapshot")
|
this._dialogParams.supervisor.localize("snapshot.create_snapshot")
|
||||||
|
@ -63,7 +63,8 @@ class HassioSnapshotDialog
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@closing=${this.closeDialog}
|
scrimClickAction
|
||||||
|
@closed=${this.closeDialog}
|
||||||
.heading=${createCloseHeading(this.hass, this._computeName)}
|
.heading=${createCloseHeading(this.hass, this._computeName)}
|
||||||
>
|
>
|
||||||
${this._restoringSnapshot
|
${this._restoringSnapshot
|
||||||
@ -88,7 +89,7 @@ class HassioSnapshotDialog
|
|||||||
fixed
|
fixed
|
||||||
slot="primaryAction"
|
slot="primaryAction"
|
||||||
@action=${this._handleMenuAction}
|
@action=${this._handleMenuAction}
|
||||||
@closing=${(ev: Event) => ev.stopPropagation()}
|
@closed=${(ev: Event) => ev.stopPropagation()}
|
||||||
>
|
>
|
||||||
<mwc-icon-button slot="trigger" alt="menu">
|
<mwc-icon-button slot="trigger" alt="menu">
|
||||||
<ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon>
|
||||||
|
@ -49,7 +49,7 @@ class DialogBox extends LitElement {
|
|||||||
open
|
open
|
||||||
?scrimClickAction=${confirmPrompt}
|
?scrimClickAction=${confirmPrompt}
|
||||||
?escapeKeyAction=${confirmPrompt}
|
?escapeKeyAction=${confirmPrompt}
|
||||||
@closing=${this._dialogClosed}
|
@closed=${this._dialogClosed}
|
||||||
defaultAction="ignore"
|
defaultAction="ignore"
|
||||||
.heading=${this._params.title
|
.heading=${this._params.title
|
||||||
? this._params.title
|
? this._params.title
|
||||||
|
@ -49,7 +49,7 @@ class DialogMQTTDeviceDebugInfo extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@closing=${this._close}
|
@closed=${this._close}
|
||||||
.heading="${this.hass!.localize(
|
.heading="${this.hass!.localize(
|
||||||
"ui.dialogs.mqtt_device_debug_info.title",
|
"ui.dialogs.mqtt_device_debug_info.title",
|
||||||
"device",
|
"device",
|
||||||
|
@ -68,7 +68,7 @@ export class DialogHelperDetail extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
.open=${this._opened}
|
.open=${this._opened}
|
||||||
@closing=${this.closeDialog}
|
@closed=${this.closeDialog}
|
||||||
class=${classMap({ "button-left": !this._platform })}
|
class=${classMap({ "button-left": !this._platform })}
|
||||||
scrimClickAction
|
scrimClickAction
|
||||||
escapeKeyAction
|
escapeKeyAction
|
||||||
|
@ -79,7 +79,7 @@ class DialogOZWRefreshNode extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@closing="${this._close}"
|
@closed="${this._close}"
|
||||||
.heading=${createCloseHeading(
|
.heading=${createCloseHeading(
|
||||||
this.hass,
|
this.hass,
|
||||||
this.hass.localize("ui.panel.config.ozw.refresh_node.title")
|
this.hass.localize("ui.panel.config.ozw.refresh_node.title")
|
||||||
|
@ -61,7 +61,7 @@ class DialogZHACluster extends LitElement {
|
|||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
hideActions
|
hideActions
|
||||||
@closing="${this._close}"
|
@closed="${this._close}"
|
||||||
.heading=${createCloseHeading(
|
.heading=${createCloseHeading(
|
||||||
this.hass,
|
this.hass,
|
||||||
this.hass.localize("ui.panel.config.zha.clusters.header")
|
this.hass.localize("ui.panel.config.zha.clusters.header")
|
||||||
|
@ -36,7 +36,7 @@ class DialogZHADeviceZigbeeInfo extends LitElement {
|
|||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
hideActions
|
hideActions
|
||||||
@closing="${this._close}"
|
@closed="${this._close}"
|
||||||
.heading=${createCloseHeading(
|
.heading=${createCloseHeading(
|
||||||
this.hass,
|
this.hass,
|
||||||
this.hass.localize(`ui.dialogs.zha_device_info.device_signature`)
|
this.hass.localize(`ui.dialogs.zha_device_info.device_signature`)
|
||||||
|
@ -74,7 +74,7 @@ export class DialogLovelaceDashboardDetail extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@closing="${this._close}"
|
@closed="${this._close}"
|
||||||
scrimClickAction
|
scrimClickAction
|
||||||
escapeKeyAction
|
escapeKeyAction
|
||||||
.heading=${createCloseHeading(
|
.heading=${createCloseHeading(
|
||||||
|
@ -66,7 +66,7 @@ export class DialogLovelaceResourceDetail extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@closing=${this._close}
|
@closed=${this._close}
|
||||||
scrimClickAction
|
scrimClickAction
|
||||||
escapeKeyAction
|
escapeKeyAction
|
||||||
.heading=${createCloseHeading(
|
.heading=${createCloseHeading(
|
||||||
|
@ -84,7 +84,7 @@ export class DialogAddUser extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@closing=${this._close}
|
@closed=${this._close}
|
||||||
scrimClickAction
|
scrimClickAction
|
||||||
escapeKeyAction
|
escapeKeyAction
|
||||||
.heading=${this.hass.localize("ui.panel.config.users.add_user.caption")}
|
.heading=${this.hass.localize("ui.panel.config.users.add_user.caption")}
|
||||||
|
@ -55,7 +55,7 @@ class DialogUserDetail extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@closing=${this._close}
|
@closed=${this._close}
|
||||||
scrimClickAction
|
scrimClickAction
|
||||||
escapeKeyAction
|
escapeKeyAction
|
||||||
.heading=${createCloseHeading(this.hass, user.name)}
|
.heading=${createCloseHeading(this.hass, user.name)}
|
||||||
|
@ -74,7 +74,7 @@ class HaMfaModuleSetupFlow extends LitElement {
|
|||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
.heading=${this._computeStepTitle()}
|
.heading=${this._computeStepTitle()}
|
||||||
@closing=${this.closeDialog}
|
@closed=${this.closeDialog}
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
${this._errorMessage
|
${this._errorMessage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user