mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 13:56:35 +00:00
Always show HA toggle in backup data settings (#23387)
This commit is contained in:
parent
7d0a269f1b
commit
31d98ec935
@ -157,24 +157,19 @@ class HaBackupConfigData extends LitElement {
|
|||||||
<ha-md-list>
|
<ha-md-list>
|
||||||
<ha-md-list-item>
|
<ha-md-list-item>
|
||||||
<ha-svg-icon slot="start" .path=${mdiCog}></ha-svg-icon>
|
<ha-svg-icon slot="start" .path=${mdiCog}></ha-svg-icon>
|
||||||
<span slot="headline">
|
<span slot="headline"> Home Assistant settings </span>
|
||||||
${this.forceHomeAssistant
|
|
||||||
? "Home Assistant settings are always included"
|
|
||||||
: "Home Assistant settings"}
|
|
||||||
</span>
|
|
||||||
<span slot="supporting-text">
|
<span slot="supporting-text">
|
||||||
The bare minimum needed to restore your system.
|
|
||||||
</span>
|
|
||||||
${this.forceHomeAssistant
|
${this.forceHomeAssistant
|
||||||
? nothing
|
? "The bare minimum needed to restore the system. It is always included in automatic backup data."
|
||||||
: html`
|
: "The bare minimum needed to restore your system."}
|
||||||
|
</span>
|
||||||
<ha-switch
|
<ha-switch
|
||||||
id="homeassistant"
|
id="homeassistant"
|
||||||
slot="end"
|
slot="end"
|
||||||
@change=${this._switchChanged}
|
@change=${this._switchChanged}
|
||||||
.checked=${data.homeassistant}
|
.checked=${data.homeassistant}
|
||||||
|
.disabled=${this.forceHomeAssistant}
|
||||||
></ha-switch>
|
></ha-switch>
|
||||||
`}
|
|
||||||
</ha-md-list-item>
|
</ha-md-list-item>
|
||||||
|
|
||||||
<ha-md-list-item>
|
<ha-md-list-item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user