mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +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
|
// eslint-disable-next-line no-await-in-loop
|
||||||
(await showConfirmationDialog(this, {
|
(await showConfirmationDialog(this, {
|
||||||
title: this.hass.localize(
|
title: this.hass.localize(
|
||||||
"ui.panel.config.devices.confirm_disable_config_entry",
|
"ui.panel.config.devices.confirm_disable_config_entry_title"
|
||||||
{ entry_name: 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"),
|
confirmText: this.hass.localize("ui.common.yes"),
|
||||||
dismissText: this.hass.localize("ui.common.no"),
|
dismissText: this.hass.localize("ui.common.no"),
|
||||||
}))
|
}))
|
||||||
|
@ -196,9 +196,13 @@ class HaConfigEntryDeviceRow extends LitElement {
|
|||||||
!config_entry.disabled_by &&
|
!config_entry.disabled_by &&
|
||||||
(await showConfirmationDialog(this, {
|
(await showConfirmationDialog(this, {
|
||||||
title: this.hass.localize(
|
title: this.hass.localize(
|
||||||
"ui.panel.config.devices.confirm_disable_config_entry",
|
"ui.panel.config.devices.confirm_disable_config_entry_title"
|
||||||
{ entry_name: 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"),
|
confirmText: this.hass.localize("ui.common.yes"),
|
||||||
dismissText: this.hass.localize("ui.common.no"),
|
dismissText: this.hass.localize("ui.common.no"),
|
||||||
}))
|
}))
|
||||||
@ -230,9 +234,13 @@ class HaConfigEntryDeviceRow extends LitElement {
|
|||||||
if (disable) {
|
if (disable) {
|
||||||
const confirm = await showConfirmationDialog(this, {
|
const confirm = await showConfirmationDialog(this, {
|
||||||
title: this.hass.localize(
|
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) }
|
{ name: computeDeviceNameDisplay(this.device, this.hass) }
|
||||||
),
|
),
|
||||||
|
destructive: true,
|
||||||
confirmText: this.hass.localize("ui.common.yes"),
|
confirmText: this.hass.localize("ui.common.yes"),
|
||||||
dismissText: this.hass.localize("ui.common.no"),
|
dismissText: this.hass.localize("ui.common.no"),
|
||||||
});
|
});
|
||||||
|
@ -5128,7 +5128,8 @@
|
|||||||
"disabled_entities": "+{count} disabled {count, plural,\n one {entity}\n other {entities}\n}",
|
"disabled_entities": "+{count} disabled {count, plural,\n one {entity}\n other {entities}\n}",
|
||||||
"hidden": "Hidden"
|
"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",
|
"update_device_error": "Updating the device failed",
|
||||||
"disabled": "Disabled",
|
"disabled": "Disabled",
|
||||||
"data_table": {
|
"data_table": {
|
||||||
@ -5379,7 +5380,8 @@
|
|||||||
"device": {
|
"device": {
|
||||||
"enable": "Enable device",
|
"enable": "Enable device",
|
||||||
"disable": "Disable 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",
|
"configure": "Configure device",
|
||||||
"delete": "Remove device"
|
"delete": "Remove device"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user