Merge pull request #4148 from springstan/addTitleAttributeConfigUIMode

Added title attributes and translated them in Configure UI Mode
This commit is contained in:
Bram Kragten 2019-10-29 13:07:43 +01:00 committed by GitHub
commit 04500bc237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -87,6 +87,9 @@ class HUIRoot extends LitElement {
? html`
<app-toolbar class="edit-mode">
<paper-icon-button
title="${this.hass!.localize(
"ui.panel.lovelace.menu.close"
)}"
icon="hass:close"
@click="${this._editModeDisable}"
></paper-icon-button>
@ -94,6 +97,9 @@ class HUIRoot extends LitElement {
${this.config.title ||
this.hass!.localize("ui.panel.lovelace.editor.header")}
<paper-icon-button
title="${this.hass!.localize(
"ui.panel.lovelace.editor.edit_lovelace.edit_title"
)}"
icon="hass:pencil"
class="edit-icon"
@click="${this._editLovelace}"
@ -113,6 +119,9 @@ class HUIRoot extends LitElement {
aria-label=${this.hass!.localize(
"ui.panel.lovelace.editor.menu.open"
)}
title="${this.hass!.localize(
"ui.panel.lovelace.editor.menu.open"
)}"
icon="hass:dots-vertical"
slot="dropdown-trigger"
></paper-icon-button>

View File

@ -1398,7 +1398,8 @@
"configure_ui": "Configure UI",
"unused_entities": "Unused entities",
"help": "Help",
"refresh": "Refresh"
"refresh": "Refresh",
"close": "Close"
},
"editor": {
"header": "Edit UI",
@ -1414,7 +1415,8 @@
},
"edit_lovelace": {
"header": "Title of your Lovelace UI",
"explanation": "This title is shown above all your views in Lovelace."
"explanation": "This title is shown above all your views in Lovelace.",
"edit_title": "Edit title"
},
"edit_view": {
"header": "View Configuration",