Hide auto-update for non advanced users (#5745)

This commit is contained in:
Joakim Sørensen 2020-05-07 15:21:52 +02:00 committed by GitHub
parent 44ad75aead
commit 808a31db2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -360,14 +360,18 @@ class HassioAddonInfo extends LitElement {
haptic haptic
></ha-switch> ></ha-switch>
</div> </div>
<div class="state"> ${this.addon.auto_update || this.hass.userData?.showAdvanced
<div>Auto update</div> ? html`
<ha-switch <div class="state">
@change=${this._autoUpdateToggled} <div>Auto update</div>
.checked=${this.addon.auto_update} <ha-switch
haptic @change=${this._autoUpdateToggled}
></ha-switch> .checked=${this.addon.auto_update}
</div> haptic
></ha-switch>
</div>
`
: ""}
${this.addon.ingress ${this.addon.ingress
? html` ? html`
<div class="state"> <div class="state">