mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Only show diagnostics if healthy
This commit is contained in:
parent
41b613a2d7
commit
746844dfc8
@ -61,7 +61,8 @@ class HassioSupervisorInfo extends LitElement {
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="options">
|
<div class="options">
|
||||||
<ha-settings-row>
|
${this.supervisorInfo?.healthy
|
||||||
|
? html` <ha-settings-row>
|
||||||
<span slot="heading">
|
<span slot="heading">
|
||||||
Share Diagnostics
|
Share Diagnostics
|
||||||
</span>
|
</span>
|
||||||
@ -78,7 +79,8 @@ class HassioSupervisorInfo extends LitElement {
|
|||||||
.checked=${this.supervisorInfo.diagnostics}
|
.checked=${this.supervisorInfo.diagnostics}
|
||||||
@change=${this._toggleDiagnostics}
|
@change=${this._toggleDiagnostics}
|
||||||
></ha-switch>
|
></ha-switch>
|
||||||
</ha-settings-row>
|
</ha-settings-row>`
|
||||||
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
${this._errors
|
${this._errors
|
||||||
? html` <div class="errors">Error: ${this._errors}</div> `
|
? html` <div class="errors">Error: ${this._errors}</div> `
|
||||||
|
Loading…
x
Reference in New Issue
Block a user