mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +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>
|
||||
${!isUnavailableState(stateObj.state) &&
|
||||
${!__DEMO__ &&
|
||||
!isUnavailableState(stateObj.state) &&
|
||||
supportsFeature(stateObj, MediaPlayerEntityFeature.BROWSE_MEDIA)
|
||||
? html`
|
||||
<mwc-button
|
||||
|
@ -325,7 +325,7 @@ export class MoreInfoDialog extends LitElement {
|
||||
></ha-icon-button>
|
||||
`
|
||||
: nothing}
|
||||
${isAdmin
|
||||
${!__DEMO__ && isAdmin
|
||||
? html`
|
||||
<ha-icon-button
|
||||
slot="actionItems"
|
||||
|
@ -75,11 +75,13 @@ export class MoreInfoHistory extends LitElement {
|
||||
<div class="title">
|
||||
${this.hass.localize("ui.dialogs.more_info_control.history")}
|
||||
</div>
|
||||
<a href=${this._showMoreHref} @click=${this._close}
|
||||
>${this.hass.localize(
|
||||
"ui.dialogs.more_info_control.show_more"
|
||||
)}</a
|
||||
>
|
||||
${__DEMO__
|
||||
? nothing
|
||||
: html`<a href=${this._showMoreHref} @click=${this._close}
|
||||
>${this.hass.localize(
|
||||
"ui.dialogs.more_info_control.show_more"
|
||||
)}</a
|
||||
>`}
|
||||
</div>
|
||||
${this._error
|
||||
? html`<div class="errors">${this._error}</div>`
|
||||
|
Loading…
x
Reference in New Issue
Block a user