mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +00:00
Hide some things in demo (#21268)
This commit is contained in:
parent
522f66423b
commit
97c4cf9391
@ -63,7 +63,8 @@ class MoreInfoMediaPlayer extends LitElement {
|
|||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
${!isUnavailableState(stateObj.state) &&
|
${!__DEMO__ &&
|
||||||
|
!isUnavailableState(stateObj.state) &&
|
||||||
supportsFeature(stateObj, MediaPlayerEntityFeature.BROWSE_MEDIA)
|
supportsFeature(stateObj, MediaPlayerEntityFeature.BROWSE_MEDIA)
|
||||||
? html`
|
? html`
|
||||||
<mwc-button
|
<mwc-button
|
||||||
|
@ -325,7 +325,7 @@ export class MoreInfoDialog extends LitElement {
|
|||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
`
|
`
|
||||||
: nothing}
|
: nothing}
|
||||||
${isAdmin
|
${!__DEMO__ && isAdmin
|
||||||
? html`
|
? html`
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
slot="actionItems"
|
slot="actionItems"
|
||||||
|
@ -75,11 +75,13 @@ export class MoreInfoHistory extends LitElement {
|
|||||||
<div class="title">
|
<div class="title">
|
||||||
${this.hass.localize("ui.dialogs.more_info_control.history")}
|
${this.hass.localize("ui.dialogs.more_info_control.history")}
|
||||||
</div>
|
</div>
|
||||||
<a href=${this._showMoreHref} @click=${this._close}
|
${__DEMO__
|
||||||
>${this.hass.localize(
|
? nothing
|
||||||
"ui.dialogs.more_info_control.show_more"
|
: html`<a href=${this._showMoreHref} @click=${this._close}
|
||||||
)}</a
|
>${this.hass.localize(
|
||||||
>
|
"ui.dialogs.more_info_control.show_more"
|
||||||
|
)}</a
|
||||||
|
>`}
|
||||||
</div>
|
</div>
|
||||||
${this._error
|
${this._error
|
||||||
? html`<div class="errors">${this._error}</div>`
|
? html`<div class="errors">${this._error}</div>`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user