From 5f3f1c713984a613e7ef78537024a8e83de7f324 Mon Sep 17 00:00:00 2001 From: Yuksel Beyti Date: Sun, 9 Nov 2025 12:56:43 +0100 Subject: [PATCH] Fix malformed HTML tags in backup backups component (#27872) --- .../config/backup/ha-config-backup-backups.ts | 130 ++++++++---------- 1 file changed, 61 insertions(+), 69 deletions(-) diff --git a/src/panels/config/backup/ha-config-backup-backups.ts b/src/panels/config/backup/ha-config-backup-backups.ts index 552c40b7db..0246ad06a8 100644 --- a/src/panels/config/backup/ha-config-backup-backups.ts +++ b/src/panels/config/backup/ha-config-backup-backups.ts @@ -372,16 +372,14 @@ class HaConfigBackupBackups extends SubscribeMixin(LitElement) { clickable id="backup_id" has-filters - .filters=${ - Object.values(this._filters).filter((filter) => - Array.isArray(filter) - ? filter.length - : filter && - Object.values(filter).some((val) => - Array.isArray(val) ? val.length : val - ) - ).length - } + .filters=${Object.values(this._filters).filter((filter) => + Array.isArray(filter) + ? filter.length + : filter && + Object.values(filter).some((val) => + Array.isArray(val) ? val.length : val + ) + ).length} selectable .selected=${this._selected.length} .initialGroupColumn=${this._activeGrouping} @@ -423,30 +421,28 @@ class HaConfigBackupBackups extends SubscribeMixin(LitElement) {
- ${ - !this.narrow - ? html` - - ${this.hass.localize( - "ui.panel.config.backup.backups.delete_selected" - )} - - ` - : html` - - ` - } + ${!this.narrow + ? html` + + ${this.hass.localize( + "ui.panel.config.backup.backups.delete_selected" + )} + + ` + : html` + + `}
- ${ - !this._needsOnboarding - ? html` - - ${backupInProgress - ? html`
- -
` - : html``} -
- ` - : nothing - } + ${!this._needsOnboarding + ? html` + + ${backupInProgress + ? html`
+ +
` + : html``} +
+ ` + : nothing} - - - ${this.hass.localize("ui.common.download")} - - - - ${this.hass.localize("ui.common.delete")} - - - > - + + + ${this.hass.localize("ui.common.download")} + + + + ${this.hass.localize("ui.common.delete")} + + `; }