From 3f0ec03a147593ef69485a153b35538f946ff86c Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 11 Oct 2024 06:40:15 +0200 Subject: [PATCH] Improve zigbee remove device dialog (#22276) * Improve zigbee remove device dialog * Fix translations --- .../integration-elements/zha/device-actions.ts | 10 ++++++++-- src/translations/en.json | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/panels/config/devices/device-detail/integration-elements/zha/device-actions.ts b/src/panels/config/devices/device-detail/integration-elements/zha/device-actions.ts index 907393e7c1..3403492ef9 100644 --- a/src/panels/config/devices/device-detail/integration-elements/zha/device-actions.ts +++ b/src/panels/config/devices/device-detail/integration-elements/zha/device-actions.ts @@ -83,9 +83,15 @@ export const getZHADeviceActions = async ( classes: "warning", action: async () => { const confirmed = await showConfirmationDialog(el, { - text: hass.localize( - "ui.dialogs.zha_device_info.confirmations.remove" + title: hass.localize( + "ui.dialogs.zha_device_info.confirmations.remove_title" ), + text: hass.localize( + "ui.dialogs.zha_device_info.confirmations.remove_text" + ), + confirmText: hass.localize("ui.common.remove"), + dismissText: hass.localize("ui.common.cancel"), + destructive: true, }); if (!confirmed) { diff --git a/src/translations/en.json b/src/translations/en.json index 029a4cffc8..51a9d69aed 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1635,7 +1635,8 @@ "zigbee_information": "View the Zigbee information for the device." }, "confirmations": { - "remove": "Are you sure that you want to remove the device?" + "remove_title": "Remove device", + "remove_text": "This device will be permanently removed from the Zigbee network." }, "quirk": "Quirk", "last_seen": "Last seen",