Update delete area dialog (#13967)

This commit is contained in:
Paul Bottein 2022-10-03 12:39:54 +02:00 committed by GitHub
parent 93893d0237
commit b5c9aae1aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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": {