Disable beta menu instead of hiding (#20906)

This commit is contained in:
Paulus Schoutsen 2024-05-30 09:29:28 -04:00 committed by GitHub
parent f97971faf6
commit b38a348957
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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