Hide some things in demo (#21268)

This commit is contained in:
Bram Kragten 2024-07-03 15:33:00 +02:00 committed by GitHub
parent 522f66423b
commit 97c4cf9391
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 7 deletions

View File

@ -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

View File

@ -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"

View File

@ -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>`