mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Update confirm disable messages (#25919)
This commit is contained in:
parent
10eb0a8b87
commit
2dee45b465
@ -1317,9 +1317,13 @@ export class HaConfigDevicePage extends LitElement {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
(await showConfirmationDialog(this, {
|
||||
title: this.hass.localize(
|
||||
"ui.panel.config.devices.confirm_disable_config_entry",
|
||||
{ entry_name: config_entry.title }
|
||||
"ui.panel.config.devices.confirm_disable_config_entry_title"
|
||||
),
|
||||
text: this.hass.localize(
|
||||
"ui.panel.config.devices.confirm_disable_config_entry_message",
|
||||
{ name: config_entry.title }
|
||||
),
|
||||
destructive: true,
|
||||
confirmText: this.hass.localize("ui.common.yes"),
|
||||
dismissText: this.hass.localize("ui.common.no"),
|
||||
}))
|
||||
|
@ -196,9 +196,13 @@ class HaConfigEntryDeviceRow extends LitElement {
|
||||
!config_entry.disabled_by &&
|
||||
(await showConfirmationDialog(this, {
|
||||
title: this.hass.localize(
|
||||
"ui.panel.config.devices.confirm_disable_config_entry",
|
||||
{ entry_name: config_entry.title }
|
||||
"ui.panel.config.devices.confirm_disable_config_entry_title"
|
||||
),
|
||||
text: this.hass.localize(
|
||||
"ui.panel.config.devices.confirm_disable_config_entry_message",
|
||||
{ name: config_entry.title }
|
||||
),
|
||||
destructive: true,
|
||||
confirmText: this.hass.localize("ui.common.yes"),
|
||||
dismissText: this.hass.localize("ui.common.no"),
|
||||
}))
|
||||
@ -230,9 +234,13 @@ class HaConfigEntryDeviceRow extends LitElement {
|
||||
if (disable) {
|
||||
const confirm = await showConfirmationDialog(this, {
|
||||
title: this.hass.localize(
|
||||
"ui.panel.config.integrations.config_entry.device.confirm_disable",
|
||||
"ui.panel.config.integrations.config_entry.device.confirm_disable_title"
|
||||
),
|
||||
text: this.hass.localize(
|
||||
"ui.panel.config.integrations.config_entry.device.confirm_disable_message",
|
||||
{ name: computeDeviceNameDisplay(this.device, this.hass) }
|
||||
),
|
||||
destructive: true,
|
||||
confirmText: this.hass.localize("ui.common.yes"),
|
||||
dismissText: this.hass.localize("ui.common.no"),
|
||||
});
|
||||
|
@ -5128,7 +5128,8 @@
|
||||
"disabled_entities": "+{count} disabled {count, plural,\n one {entity}\n other {entities}\n}",
|
||||
"hidden": "Hidden"
|
||||
},
|
||||
"confirm_disable_config_entry": "There are no more devices for the config entry {entry_name}, do you want to instead disable the config entry?",
|
||||
"confirm_disable_config_entry_title": "Disable config entry?",
|
||||
"confirm_disable_config_entry_message": "There are no more devices for the config entry {name}, do you want to instead disable the config entry?",
|
||||
"update_device_error": "Updating the device failed",
|
||||
"disabled": "Disabled",
|
||||
"data_table": {
|
||||
@ -5379,7 +5380,8 @@
|
||||
"device": {
|
||||
"enable": "Enable device",
|
||||
"disable": "Disable device",
|
||||
"confirm_disable": "Are you sure you want to disable {name}?",
|
||||
"confirm_disable_title": "Disable device?",
|
||||
"confirm_disable_message": "Are you sure you want to disable {name} and all of it’s entities?",
|
||||
"configure": "Configure device",
|
||||
"delete": "Remove device"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user