Only show diagnostics if healthy

This commit is contained in:
Ludeeus 2020-08-11 12:15:08 +00:00
parent 41b613a2d7
commit 746844dfc8

View File

@ -61,7 +61,8 @@ class HassioSupervisorInfo extends LitElement {
</tbody>
</table>
<div class="options">
<ha-settings-row>
${this.supervisorInfo?.healthy
? html` <ha-settings-row>
<span slot="heading">
Share Diagnostics
</span>
@ -78,7 +79,8 @@ class HassioSupervisorInfo extends LitElement {
.checked=${this.supervisorInfo.diagnostics}
@change=${this._toggleDiagnostics}
></ha-switch>
</ha-settings-row>
</ha-settings-row>`
: ""}
</div>
${this._errors
? html` <div class="errors">Error: ${this._errors}</div> `