mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Prettier
This commit is contained in:
parent
fe8a1152c4
commit
b29563a254
@ -282,24 +282,21 @@ export class HaConfigDevicePage extends LitElement {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
buttons.push(html`
|
buttons.push(html`
|
||||||
<mwc-button
|
<mwc-button
|
||||||
class="warning"
|
class="warning"
|
||||||
.entryId=${entry.entry_id}
|
.entryId=${entry.entry_id}
|
||||||
@click=${this._confirmDeleteEntry}
|
@click=${this._confirmDeleteEntry}
|
||||||
>
|
>
|
||||||
${buttons.length > 1
|
${buttons.length > 1
|
||||||
? this.hass.localize(
|
? this.hass.localize(
|
||||||
`ui.panel.config.devices.delete_device_integration`,
|
`ui.panel.config.devices.delete_device_integration`,
|
||||||
{
|
{
|
||||||
integration: domainToName(
|
integration: domainToName(this.hass.localize, entry.domain),
|
||||||
this.hass.localize,
|
}
|
||||||
entry.domain
|
)
|
||||||
),
|
: this.hass.localize(`ui.panel.config.devices.delete_device`)}
|
||||||
}
|
</mwc-button>
|
||||||
)
|
`);
|
||||||
: this.hass.localize(`ui.panel.config.devices.delete_device`)}
|
|
||||||
</mwc-button>
|
|
||||||
`);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (buttons.length > 0) {
|
if (buttons.length > 0) {
|
||||||
@ -308,7 +305,7 @@ export class HaConfigDevicePage extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _confirmDeleteEntry(e: MouseEvent): Promise<void> {
|
private async _confirmDeleteEntry(e: MouseEvent): Promise<void> {
|
||||||
const entryId = (e.currentTarget as any). entryId;
|
const entryId = (e.currentTarget as any).entryId;
|
||||||
|
|
||||||
const confirmed = await showConfirmationDialog(this, {
|
const confirmed = await showConfirmationDialog(this, {
|
||||||
text: this.hass.localize("ui.panel.config.devices.confirm_delete"),
|
text: this.hass.localize("ui.panel.config.devices.confirm_delete"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user