From ed6659ad8f6c77066e4fe4ac187552d7475b0411 Mon Sep 17 00:00:00 2001 From: Norbert Rittel Date: Fri, 28 Feb 2025 16:06:03 +0100 Subject: [PATCH] More info panel: Replace "Dismiss dialog" tooltip with "Close info" (#24449) * More info panel: Replace "Dismiss dialog" tooltip with "Close info" Dismiss should only be used for closing dialogs like notifications that cannot be reopened. Therefore the "Dismiss dialog" tooltip for the More info dialog is misleading, especially in translations that might emphasize the destructive meaning of "dismiss". Matching the "Back to info" tooltip shown to return to the initial view from the entity settings this is changed to "Close info". * use common close --------- Co-authored-by: Bram Kragten --- src/dialogs/config-flow/dialog-data-entry-flow.ts | 4 +--- src/dialogs/more-info/ha-more-info-dialog.ts | 4 +--- .../zha/dialog-zha-manage-zigbee-device.ts | 2 +- src/translations/en.json | 6 ------ 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/dialogs/config-flow/dialog-data-entry-flow.ts b/src/dialogs/config-flow/dialog-data-entry-flow.ts index 94a090ec90..bf9a66eba6 100644 --- a/src/dialogs/config-flow/dialog-data-entry-flow.ts +++ b/src/dialogs/config-flow/dialog-data-entry-flow.ts @@ -229,9 +229,7 @@ class DataEntryFlowDialog extends LitElement { ` : ""} diff --git a/src/dialogs/more-info/ha-more-info-dialog.ts b/src/dialogs/more-info/ha-more-info-dialog.ts index b078a1d6f4..cc383b86ed 100644 --- a/src/dialogs/more-info/ha-more-info-dialog.ts +++ b/src/dialogs/more-info/ha-more-info-dialog.ts @@ -307,9 +307,7 @@ export class MoreInfoDialog extends LitElement { ` diff --git a/src/panels/config/integrations/integration-panels/zha/dialog-zha-manage-zigbee-device.ts b/src/panels/config/integrations/integration-panels/zha/dialog-zha-manage-zigbee-device.ts index ce07e1e066..3ac4a62f02 100644 --- a/src/panels/config/integrations/integration-panels/zha/dialog-zha-manage-zigbee-device.ts +++ b/src/panels/config/integrations/integration-panels/zha/dialog-zha-manage-zigbee-device.ts @@ -95,7 +95,7 @@ class DialogZHAManageZigbeeDevice extends LitElement {