mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Hide homeassistant from partial restore if no version (#13168)
This commit is contained in:
parent
cd4f6e19f4
commit
414db83359
@ -168,23 +168,24 @@ export class SupervisorBackupContent extends LitElement {
|
|||||||
: ""}
|
: ""}
|
||||||
${this.backupType === "partial"
|
${this.backupType === "partial"
|
||||||
? html`<div class="partial-picker">
|
? html`<div class="partial-picker">
|
||||||
<ha-formfield
|
${this.backup?.homeassistant
|
||||||
.label=${html`<supervisor-formfield-label
|
? html`<ha-formfield
|
||||||
label="Home Assistant"
|
.label=${html`<supervisor-formfield-label
|
||||||
.iconPath=${mdiHomeAssistant}
|
label="Home Assistant"
|
||||||
.version=${this.backup
|
.iconPath=${mdiHomeAssistant}
|
||||||
? this.backup.homeassistant
|
.version=${this.backup
|
||||||
: this.hass.config.version}
|
? this.backup.homeassistant
|
||||||
>
|
: this.hass.config.version}
|
||||||
</supervisor-formfield-label>`}
|
>
|
||||||
>
|
</supervisor-formfield-label>`}
|
||||||
<ha-checkbox
|
>
|
||||||
.checked=${this.homeAssistant}
|
<ha-checkbox
|
||||||
@change=${this.toggleHomeAssistant}
|
.checked=${this.homeAssistant}
|
||||||
>
|
@change=${this.toggleHomeAssistant}
|
||||||
</ha-checkbox>
|
>
|
||||||
</ha-formfield>
|
</ha-checkbox>
|
||||||
|
</ha-formfield>`
|
||||||
|
: ""}
|
||||||
${foldersSection?.templates.length
|
${foldersSection?.templates.length
|
||||||
? html`
|
? html`
|
||||||
<ha-formfield
|
<ha-formfield
|
||||||
|
Loading…
x
Reference in New Issue
Block a user