Replace closing with closed in dialogs (#9257)

This commit is contained in:
Joakim Sørensen 2021-05-26 11:10:27 +02:00 committed by GitHub
parent c4a8899780
commit fa9c6a765a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 18 additions and 16 deletions

View File

@ -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(

View File

@ -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(

View File

@ -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")

View File

@ -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>

View File

@ -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

View File

@ -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",

View File

@ -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

View File

@ -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")

View File

@ -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")

View File

@ -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`)

View File

@ -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(

View File

@ -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(

View File

@ -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")}

View File

@ -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)}

View File

@ -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