mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Improve zigbee remove device dialog (#22276)
* Improve zigbee remove device dialog * Fix translations
This commit is contained in:
parent
1bb871b9ac
commit
3f0ec03a14
@ -83,9 +83,15 @@ export const getZHADeviceActions = async (
|
|||||||
classes: "warning",
|
classes: "warning",
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const confirmed = await showConfirmationDialog(el, {
|
const confirmed = await showConfirmationDialog(el, {
|
||||||
text: hass.localize(
|
title: hass.localize(
|
||||||
"ui.dialogs.zha_device_info.confirmations.remove"
|
"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) {
|
if (!confirmed) {
|
||||||
|
@ -1635,7 +1635,8 @@
|
|||||||
"zigbee_information": "View the Zigbee information for the device."
|
"zigbee_information": "View the Zigbee information for the device."
|
||||||
},
|
},
|
||||||
"confirmations": {
|
"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",
|
"quirk": "Quirk",
|
||||||
"last_seen": "Last seen",
|
"last_seen": "Last seen",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user