Update delete area dialog (#13967)
This commit is contained in:
parent
93893d0237
commit
b5c9aae1aa
|
@ -610,13 +610,15 @@ class HaConfigAreaPage extends SubscribeMixin(LitElement) {
|
|||
if (
|
||||
!(await showConfirmationDialog(this, {
|
||||
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(
|
||||
"ui.panel.config.areas.delete.confirmation_text"
|
||||
),
|
||||
dismissText: this.hass.localize("ui.common.cancel"),
|
||||
confirmText: this.hass.localize("ui.common.delete"),
|
||||
destructive: true,
|
||||
}))
|
||||
) {
|
||||
return false;
|
||||
|
|
|
@ -1313,8 +1313,8 @@
|
|||
"no_linked_entities": "There are no entities linked to this area."
|
||||
},
|
||||
"delete": {
|
||||
"confirmation_title": "Are you sure you want to delete this area?",
|
||||
"confirmation_text": "This user will be permanently deleted."
|
||||
"confirmation_title": "Delete {name}?",
|
||||
"confirmation_text": "This area will be permanently deleted and all devices belonging to this area will become unassigned."
|
||||
}
|
||||
},
|
||||
"backup": {
|
||||
|
|
Loading…
Reference in New Issue