mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +00:00
Add missing labels to media player volume buttons (#12170)
This commit is contained in:
parent
80a4852325
commit
0bb2767696
@ -96,6 +96,13 @@ class MoreInfoMediaPlayer extends LitElement {
|
|||||||
.path=${stateObj.attributes.is_volume_muted
|
.path=${stateObj.attributes.is_volume_muted
|
||||||
? mdiVolumeOff
|
? mdiVolumeOff
|
||||||
: mdiVolumeHigh}
|
: mdiVolumeHigh}
|
||||||
|
.label=${this.hass.localize(
|
||||||
|
`ui.card.media_player.${
|
||||||
|
stateObj.attributes.is_volume_muted
|
||||||
|
? "media_volume_unmute"
|
||||||
|
: "media_volume_mute"
|
||||||
|
}`
|
||||||
|
)}
|
||||||
@click=${this._toggleMute}
|
@click=${this._toggleMute}
|
||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
`
|
`
|
||||||
@ -105,11 +112,17 @@ class MoreInfoMediaPlayer extends LitElement {
|
|||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
action="volume_down"
|
action="volume_down"
|
||||||
.path=${mdiVolumeMinus}
|
.path=${mdiVolumeMinus}
|
||||||
|
.label=${this.hass.localize(
|
||||||
|
"ui.card.media_player.media_volume_down"
|
||||||
|
)}
|
||||||
@click=${this._handleClick}
|
@click=${this._handleClick}
|
||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
action="volume_up"
|
action="volume_up"
|
||||||
.path=${mdiVolumePlus}
|
.path=${mdiVolumePlus}
|
||||||
|
.label=${this.hass.localize(
|
||||||
|
"ui.card.media_player.media_volume_up"
|
||||||
|
)}
|
||||||
@click=${this._handleClick}
|
@click=${this._handleClick}
|
||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
`
|
`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user