From 746844dfc85469a18acee8bc399877add86d23b0 Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Tue, 11 Aug 2020 12:15:08 +0000 Subject: [PATCH] Only show diagnostics if healthy --- hassio/src/system/hassio-supervisor-info.ts | 38 +++++++++++---------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/hassio/src/system/hassio-supervisor-info.ts b/hassio/src/system/hassio-supervisor-info.ts index 0452bd5188..71b21423e0 100644 --- a/hassio/src/system/hassio-supervisor-info.ts +++ b/hassio/src/system/hassio-supervisor-info.ts @@ -61,24 +61,26 @@ class HassioSupervisorInfo extends LitElement {
- - - Share Diagnostics - -
- Share crash reports and diagnostic information. - -
- -
+ ${this.supervisorInfo?.healthy + ? html` + + Share Diagnostics + +
+ Share crash reports and diagnostic information. + +
+ +
` + : ""}
${this._errors ? html`
Error: ${this._errors}
`