Add title to backups config page (#12442)

This commit is contained in:
Philip Allgaier 2022-04-26 21:04:32 +02:00 committed by GitHub
parent d550b1a18e
commit 824bb9ba35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View File

@ -126,6 +126,12 @@ class HaConfigBackup extends LitElement {
return html`
<hass-tabs-subpage-data-table
tabs=${[
{
translationKey: "ui.panel.config.backup.caption",
path: `/config/backup`,
},
]}
.hass=${this.hass}
.narrow=${this.narrow}
back-path="/config/system"
@ -133,10 +139,10 @@ class HaConfigBackup extends LitElement {
.columns=${this._columns(this.narrow, this.hass.language)}
.data=${this._getItems(this._backupData.backups)}
.noDataText=${this.hass.localize("ui.panel.config.backup.no_backups")}
.searchLabel=${this.hass.localize(
"ui.panel.config.backup.picker.search"
)}
>
<span slot="header"
>${this.hass.localize("ui.panel.config.backup.caption")}</span
>
<ha-fab
slot="fab"
?disabled=${this._backupData.backing_up}

View File

@ -1236,6 +1236,9 @@
"title": "Remove backup",
"description": "Are you sure you want to remove the backup with the name {name}?",
"confirm": "[%key:ui::common::remove%]"
},
"picker": {
"search": "Search backups"
}
},
"tag": {