mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Remove unnecessary labels from dashboard menu (#14605)
This commit is contained in:
parent
ef7d839c0f
commit
00c2cb731b
@ -174,9 +174,6 @@ class HUIRoot extends LitElement {
|
|||||||
: html`
|
: html`
|
||||||
<mwc-list-item
|
<mwc-list-item
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
aria-label=${this.hass!.localize(
|
|
||||||
"ui.panel.lovelace.unused_entities.title"
|
|
||||||
)}
|
|
||||||
@request-selected=${this._handleUnusedEntities}
|
@request-selected=${this._handleUnusedEntities}
|
||||||
>
|
>
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
@ -324,17 +321,13 @@ class HUIRoot extends LitElement {
|
|||||||
${this.narrow
|
${this.narrow
|
||||||
? html`
|
? html`
|
||||||
<mwc-list-item
|
<mwc-list-item
|
||||||
.label=${this.hass!.localize(
|
|
||||||
"ui.panel.lovelace.menu.search"
|
|
||||||
)}
|
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
@request-selected=${this._showQuickBar}
|
@request-selected=${this._showQuickBar}
|
||||||
>
|
>
|
||||||
<span
|
${this.hass!.localize(
|
||||||
>${this.hass!.localize(
|
"ui.panel.lovelace.menu.search"
|
||||||
"ui.panel.lovelace.menu.search"
|
)}
|
||||||
)}</span
|
|
||||||
>
|
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
slot="graphic"
|
slot="graphic"
|
||||||
.path=${mdiMagnify}
|
.path=${mdiMagnify}
|
||||||
@ -346,18 +339,14 @@ class HUIRoot extends LitElement {
|
|||||||
this._conversation(this.hass.config.components)
|
this._conversation(this.hass.config.components)
|
||||||
? html`
|
? html`
|
||||||
<mwc-list-item
|
<mwc-list-item
|
||||||
.label=${this.hass!.localize(
|
|
||||||
"ui.panel.lovelace.menu.start_conversation"
|
|
||||||
)}
|
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
@request-selected=${this
|
@request-selected=${this
|
||||||
._showVoiceCommandDialog}
|
._showVoiceCommandDialog}
|
||||||
>
|
>
|
||||||
<span
|
${this.hass!.localize(
|
||||||
>${this.hass!.localize(
|
"ui.panel.lovelace.menu.start_conversation"
|
||||||
"ui.panel.lovelace.menu.start_conversation"
|
)}
|
||||||
)}</span
|
|
||||||
>
|
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
slot="graphic"
|
slot="graphic"
|
||||||
.path=${mdiMicrophone}
|
.path=${mdiMicrophone}
|
||||||
@ -368,35 +357,25 @@ class HUIRoot extends LitElement {
|
|||||||
${this._yamlMode
|
${this._yamlMode
|
||||||
? html`
|
? html`
|
||||||
<mwc-list-item
|
<mwc-list-item
|
||||||
aria-label=${this.hass!.localize(
|
|
||||||
"ui.common.refresh"
|
|
||||||
)}
|
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
@request-selected=${this._handleRefresh}
|
@request-selected=${this._handleRefresh}
|
||||||
>
|
>
|
||||||
<span
|
${this.hass!.localize("ui.common.refresh")}
|
||||||
>${this.hass!.localize(
|
|
||||||
"ui.common.refresh"
|
|
||||||
)}</span
|
|
||||||
>
|
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
slot="graphic"
|
slot="graphic"
|
||||||
.path=${mdiRefresh}
|
.path=${mdiRefresh}
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
</mwc-list-item>
|
</mwc-list-item>
|
||||||
<mwc-list-item
|
<mwc-list-item
|
||||||
aria-label=${this.hass!.localize(
|
|
||||||
"ui.panel.lovelace.unused_entities.title"
|
|
||||||
)}
|
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
@request-selected=${this
|
@request-selected=${this
|
||||||
._handleUnusedEntities}
|
._handleUnusedEntities}
|
||||||
>
|
>
|
||||||
<span
|
${this.hass!.localize(
|
||||||
>${this.hass!.localize(
|
"ui.panel.lovelace.unused_entities.title"
|
||||||
"ui.panel.lovelace.unused_entities.title"
|
)}
|
||||||
)}</span
|
|
||||||
>
|
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
slot="graphic"
|
slot="graphic"
|
||||||
.path=${mdiShape}
|
.path=${mdiShape}
|
||||||
@ -411,9 +390,6 @@ class HUIRoot extends LitElement {
|
|||||||
? html`
|
? html`
|
||||||
<mwc-list-item
|
<mwc-list-item
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
aria-label=${this.hass!.localize(
|
|
||||||
"ui.panel.lovelace.menu.reload_resources"
|
|
||||||
)}
|
|
||||||
@request-selected=${this
|
@request-selected=${this
|
||||||
._handleReloadResources}
|
._handleReloadResources}
|
||||||
>
|
>
|
||||||
@ -432,9 +408,6 @@ class HUIRoot extends LitElement {
|
|||||||
? html`
|
? html`
|
||||||
<mwc-list-item
|
<mwc-list-item
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
aria-label=${this.hass!.localize(
|
|
||||||
"ui.panel.lovelace.menu.configure_ui"
|
|
||||||
)}
|
|
||||||
@request-selected=${this
|
@request-selected=${this
|
||||||
._handleEnableEditMode}
|
._handleEnableEditMode}
|
||||||
>
|
>
|
||||||
@ -459,12 +432,7 @@ class HUIRoot extends LitElement {
|
|||||||
class="menu-link"
|
class="menu-link"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<mwc-list-item
|
<mwc-list-item graphic="icon">
|
||||||
graphic="icon"
|
|
||||||
aria-label=${this.hass!.localize(
|
|
||||||
"ui.panel.lovelace.menu.help"
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
${this.hass!.localize(
|
${this.hass!.localize(
|
||||||
"ui.panel.lovelace.menu.help"
|
"ui.panel.lovelace.menu.help"
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user