mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Use ha-formfield around backup checkbox (#10653)
This commit is contained in:
parent
0ca35d7012
commit
9f5756c9fa
@ -16,6 +16,7 @@ import "../../../src/components/ha-button-menu";
|
|||||||
import "../../../src/components/ha-card";
|
import "../../../src/components/ha-card";
|
||||||
import "../../../src/components/ha-checkbox";
|
import "../../../src/components/ha-checkbox";
|
||||||
import "../../../src/components/ha-expansion-panel";
|
import "../../../src/components/ha-expansion-panel";
|
||||||
|
import "../../../src/components/ha-formfield";
|
||||||
import "../../../src/components/ha-icon-button";
|
import "../../../src/components/ha-icon-button";
|
||||||
import "../../../src/components/ha-markdown";
|
import "../../../src/components/ha-markdown";
|
||||||
import "../../../src/components/ha-settings-row";
|
import "../../../src/components/ha-settings-row";
|
||||||
@ -171,19 +172,17 @@ class UpdateAvailableDashboard extends LitElement {
|
|||||||
</div>
|
</div>
|
||||||
${!["os", "supervisor"].includes(this._updateEntry)
|
${!["os", "supervisor"].includes(this._updateEntry)
|
||||||
? html`
|
? html`
|
||||||
<ha-settings-row>
|
<ha-formfield
|
||||||
|
.label=${this.supervisor.localize(
|
||||||
|
"update_available.create_backup"
|
||||||
|
)}
|
||||||
|
>
|
||||||
<ha-checkbox
|
<ha-checkbox
|
||||||
slot="prefix"
|
|
||||||
.checked=${this._createBackup}
|
.checked=${this._createBackup}
|
||||||
@click=${this._toggleBackup}
|
@click=${this._toggleBackup}
|
||||||
>
|
>
|
||||||
</ha-checkbox>
|
</ha-checkbox>
|
||||||
<span slot="heading">
|
</ha-formfield>
|
||||||
${this.supervisor.localize(
|
|
||||||
"update_available.create_backup"
|
|
||||||
)}
|
|
||||||
</span>
|
|
||||||
</ha-settings-row>
|
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
`
|
`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user