mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Update delete person dialog (#13763)
This commit is contained in:
parent
dcfcd54f10
commit
7ffd30643a
@ -233,10 +233,16 @@ class HaConfigPerson extends LitElement {
|
|||||||
removeEntry: async () => {
|
removeEntry: async () => {
|
||||||
if (
|
if (
|
||||||
!(await showConfirmationDialog(this, {
|
!(await showConfirmationDialog(this, {
|
||||||
title: this.hass!.localize("ui.panel.config.person.confirm_delete"),
|
title: this.hass!.localize(
|
||||||
text: this.hass!.localize("ui.panel.config.person.confirm_delete2"),
|
"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"),
|
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;
|
||||||
|
@ -2749,8 +2749,8 @@
|
|||||||
"no_persons_created_yet": "Looks like you have not added any people yet.",
|
"no_persons_created_yet": "Looks like you have not added any people yet.",
|
||||||
"create_person": "Create Person",
|
"create_person": "Create Person",
|
||||||
"add_person": "Add Person",
|
"add_person": "Add Person",
|
||||||
"confirm_delete": "Are you sure you want to delete this person?",
|
"confirm_delete_title": "Delete {name}?",
|
||||||
"confirm_delete2": "All devices belonging to this person will become unassigned.",
|
"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_title": "Person Not Found",
|
||||||
"person_not_found": "We couldn't find the person you were trying to edit.",
|
"person_not_found": "We couldn't find the person you were trying to edit.",
|
||||||
"detail": {
|
"detail": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user