mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Review updates again because I am a fool
This commit is contained in:
parent
2718ada9f9
commit
9a7f7f119d
@ -86,9 +86,8 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
return html`
|
return html`
|
||||||
<ha-card>
|
<ha-card>
|
||||||
<div
|
<div
|
||||||
class="${classMap({
|
class="ratio ${classMap({
|
||||||
"no-image": !this._image,
|
"no-image": !this._image,
|
||||||
ratio: true,
|
|
||||||
})}"
|
})}"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@ -130,7 +129,7 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
? ""
|
? ""
|
||||||
: html`
|
: html`
|
||||||
<paper-icon-button
|
<paper-icon-button
|
||||||
icon=${"hass:power"}
|
icon="hass:power"
|
||||||
.action=${stateObj.state === "off" ? "turn_on" : "turn_off"}
|
.action=${stateObj.state === "off" ? "turn_on" : "turn_off"}
|
||||||
@click=${this._handleClick}
|
@click=${this._handleClick}
|
||||||
></paper-icon-button>
|
></paper-icon-button>
|
||||||
@ -140,7 +139,7 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
? ""
|
? ""
|
||||||
: html`
|
: html`
|
||||||
<paper-icon-button
|
<paper-icon-button
|
||||||
icon=${"hass:skip-previous"}
|
icon="hass:skip-previous"
|
||||||
.disabled="${OFF_STATES.includes(stateObj.state)}"
|
.disabled="${OFF_STATES.includes(stateObj.state)}"
|
||||||
.action=${"media_previous_track"}
|
.action=${"media_previous_track"}
|
||||||
@click=${this._handleClick}
|
@click=${this._handleClick}
|
||||||
@ -170,7 +169,7 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
? ""
|
? ""
|
||||||
: html`
|
: html`
|
||||||
<paper-icon-button
|
<paper-icon-button
|
||||||
icon=${"hass:skip-next"}
|
icon="hass:skip-next"
|
||||||
.disabled="${OFF_STATES.includes(stateObj.state)}"
|
.disabled="${OFF_STATES.includes(stateObj.state)}"
|
||||||
.action=${"media_next_track"}
|
.action=${"media_next_track"}
|
||||||
@click=${this._handleClick}
|
@click=${this._handleClick}
|
||||||
@ -178,8 +177,8 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
`}
|
`}
|
||||||
</div>
|
</div>
|
||||||
<paper-icon-button
|
<paper-icon-button
|
||||||
icon=${"hass:dots-vertical"}
|
icon="hass:dots-vertical"
|
||||||
@click="${this._handleMoreInfo}"
|
@click=${this._handleMoreInfo}
|
||||||
></paper-icon-button>
|
></paper-icon-button>
|
||||||
</div>
|
</div>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user