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

View File

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