mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
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
This commit is contained in:
parent
c25f2d3941
commit
b96b026905
15
src/panels/config/integrations/config-entry/ha-config-entry-page.ts
Normal file → Executable file
15
src/panels/config/integrations/config-entry/ha-config-entry-page.ts
Normal file → Executable file
@ -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
|
||||
)}
|
||||
></paper-icon-button>
|
||||
`
|
||||
: ""}
|
||||
<paper-icon-button
|
||||
slot="toolbar-icon"
|
||||
icon="hass:message-settings-variant"
|
||||
title=${this.hass.localize(
|
||||
"ui.panel.config.integrations.config_entry.system_options_button",
|
||||
"integration",
|
||||
configEntry.title
|
||||
)}
|
||||
@click=${this._showSystemOptions}
|
||||
></paper-icon-button>
|
||||
<paper-icon-button
|
||||
slot="toolbar-icon"
|
||||
icon="hass:delete"
|
||||
title=${this.hass.localize(
|
||||
"ui.panel.config.integrations.config_entry.delete_button",
|
||||
"integration",
|
||||
configEntry.title
|
||||
)}
|
||||
@click=${this._removeEntry}
|
||||
></paper-icon-button>
|
||||
|
||||
|
@ -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?",
|
||||
|
Loading…
x
Reference in New Issue
Block a user