From b96b0269059edc9e4b04581a171a3fa191cc9f33 Mon Sep 17 00:00:00 2001 From: Phi Dong Date: Sun, 20 Oct 2019 06:02:11 -0700 Subject: [PATCH] Add hovers (title attrs) to buttons on integrations config entry (#4059) * Add integration specific titles to config buttons * Rename tranlation var to integration, move button labels inline --- .../config-entry/ha-config-entry-page.ts | 15 +++++++++++++++ src/translations/en.json | 3 +++ 2 files changed, 18 insertions(+) mode change 100644 => 100755 src/panels/config/integrations/config-entry/ha-config-entry-page.ts diff --git a/src/panels/config/integrations/config-entry/ha-config-entry-page.ts b/src/panels/config/integrations/config-entry/ha-config-entry-page.ts old mode 100644 new mode 100755 index af6e559f0d..12d3674bc4 --- a/src/panels/config/integrations/config-entry/ha-config-entry-page.ts +++ b/src/panels/config/integrations/config-entry/ha-config-entry-page.ts @@ -84,17 +84,32 @@ class HaConfigEntryPage extends LitElement { slot="toolbar-icon" icon="hass:settings" @click=${this._showSettings} + title=${this.hass.localize( + "ui.panel.config.integrations.config_entry.settings_button", + "integration", + configEntry.title + )} > ` : ""} diff --git a/src/translations/en.json b/src/translations/en.json index 7f77a2cdaf..9c0b16ed55 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1187,6 +1187,9 @@ "configure": "Configure", "none": "Nothing configured yet", "config_entry": { + "settings_button": "Edit settings for {integration}", + "system_options_button": "System options for {integration}", + "delete_button": "Delete {integration}", "no_devices": "This integration has no devices.", "no_device": "Entities without devices", "delete_confirm": "Are you sure you want to delete this integration?",