Update delete person dialog (#13763)

This commit is contained in:
Paul Bottein 2022-09-16 16:39:51 +02:00 committed by GitHub
parent dcfcd54f10
commit 7ffd30643a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -233,10 +233,16 @@ class HaConfigPerson extends LitElement {
removeEntry: async () => {
if (
!(await showConfirmationDialog(this, {
title: this.hass!.localize("ui.panel.config.person.confirm_delete"),
text: this.hass!.localize("ui.panel.config.person.confirm_delete2"),
title: this.hass!.localize(
"ui.panel.config.person.confirm_delete_title",
{ name: entry!.name }
),
text: this.hass!.localize(
"ui.panel.config.person.confirm_delete_text"
),
dismissText: this.hass!.localize("ui.common.cancel"),
confirmText: this.hass!.localize("ui.common.delete"),
destructive: true,
}))
) {
return false;

View File

@ -2749,8 +2749,8 @@
"no_persons_created_yet": "Looks like you have not added any people yet.",
"create_person": "Create Person",
"add_person": "Add Person",
"confirm_delete": "Are you sure you want to delete this person?",
"confirm_delete2": "All devices belonging to this person will become unassigned.",
"confirm_delete_title": "Delete {name}?",
"confirm_delete_text": "This person will be permanently deleted and all devices belonging to this person will become unassigned.",
"person_not_found_title": "Person Not Found",
"person_not_found": "We couldn't find the person you were trying to edit.",
"detail": {