Hide beta toggle when unsupervised (#20573)

This commit is contained in:
karwosts 2024-04-21 00:50:14 -07:00 committed by GitHub
parent f2a0881821
commit b966601e6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,11 +82,11 @@ class HaConfigSectionUpdates extends LitElement {
>
${this.hass.localize("ui.panel.config.updates.show_skipped")}
</ha-check-list-item>
${this._supervisorInfo?.channel !== "dev"
${this._supervisorInfo && this._supervisorInfo.channel !== "dev"
? html`
<li divider role="separator"></li>
<mwc-list-item @request-selected=${this._toggleBeta}>
${this._supervisorInfo?.channel === "stable"
${this._supervisorInfo.channel === "stable"
? this.hass.localize("ui.panel.config.updates.join_beta")
: this.hass.localize(
"ui.panel.config.updates.leave_beta"