From a4078b44348bbac378214f31f8072282b3e9979c Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Thu, 4 Jul 2024 18:15:53 +0000 Subject: [PATCH] delete tags --- src/panels/config/tags/ha-config-tags.ts | 7 ++++--- src/translations/en.json | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/panels/config/tags/ha-config-tags.ts b/src/panels/config/tags/ha-config-tags.ts index 98ae4252f802..933490adfe3c 100644 --- a/src/panels/config/tags/ha-config-tags.ts +++ b/src/panels/config/tags/ha-config-tags.ts @@ -301,12 +301,13 @@ export class HaConfigTags extends SubscribeMixin(LitElement) { private async _removeTag(selectedTag: Tag) { if ( !(await showConfirmationDialog(this, { - title: this.hass!.localize("ui.panel.config.tag.confirm_remove_title"), - text: this.hass.localize("ui.panel.config.tag.confirm_remove", { + title: this.hass!.localize("ui.panel.config.tag.confirm_delete_title"), + text: this.hass.localize("ui.panel.config.tag.confirm_delete", { tag: selectedTag.name || selectedTag.id, }), dismissText: this.hass!.localize("ui.common.cancel"), - confirmText: this.hass!.localize("ui.common.remove"), + confirmText: this.hass!.localize("ui.common.delete"), + destructive: true, })) ) { return false; diff --git a/src/translations/en.json b/src/translations/en.json index 75271fe1a472..2e68d19f1ac4 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2107,8 +2107,8 @@ "edit": "Edit", "never_scanned": "Never scanned", "create_automation": "Create automation with tag", - "confirm_remove_title": "Remove tag?", - "confirm_remove": "Are you sure you want to remove tag {tag}?", + "confirm_delete_title": "Delete tag?", + "confirm_delete": "Are you sure you want to delete tag {tag}?", "automation_title": "Tag {name} is scanned", "qr_code_image": "QR code for tag {name}", "headers": {