mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Update delete area dialog (#13967)
This commit is contained in:
parent
93893d0237
commit
b5c9aae1aa
@ -610,13 +610,15 @@ class HaConfigAreaPage extends SubscribeMixin(LitElement) {
|
|||||||
if (
|
if (
|
||||||
!(await showConfirmationDialog(this, {
|
!(await showConfirmationDialog(this, {
|
||||||
title: this.hass.localize(
|
title: this.hass.localize(
|
||||||
"ui.panel.config.areas.delete.confirmation_title"
|
"ui.panel.config.areas.delete.confirmation_title",
|
||||||
|
{ name: entry!.name }
|
||||||
),
|
),
|
||||||
text: this.hass.localize(
|
text: this.hass.localize(
|
||||||
"ui.panel.config.areas.delete.confirmation_text"
|
"ui.panel.config.areas.delete.confirmation_text"
|
||||||
),
|
),
|
||||||
dismissText: this.hass.localize("ui.common.cancel"),
|
dismissText: this.hass.localize("ui.common.cancel"),
|
||||||
confirmText: this.hass.localize("ui.common.delete"),
|
confirmText: this.hass.localize("ui.common.delete"),
|
||||||
|
destructive: true,
|
||||||
}))
|
}))
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -1313,8 +1313,8 @@
|
|||||||
"no_linked_entities": "There are no entities linked to this area."
|
"no_linked_entities": "There are no entities linked to this area."
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"confirmation_title": "Are you sure you want to delete this area?",
|
"confirmation_title": "Delete {name}?",
|
||||||
"confirmation_text": "This user will be permanently deleted."
|
"confirmation_text": "This area will be permanently deleted and all devices belonging to this area will become unassigned."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"backup": {
|
"backup": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user