From 3be601a3b967758539e37aab9ad5481abfcdfd99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Thu, 15 Jun 2023 16:08:32 +0200 Subject: [PATCH] Add location to backups table (#16813) --- hassio/src/backups/hassio-backups.ts | 9 +++++++++ src/data/hassio/backup.ts | 1 + src/translations/en.json | 2 ++ 3 files changed, 12 insertions(+) diff --git a/hassio/src/backups/hassio-backups.ts b/hassio/src/backups/hassio-backups.ts index 382f8ec669..7dc5c94972 100644 --- a/hassio/src/backups/hassio-backups.ts +++ b/hassio/src/backups/hassio-backups.ts @@ -136,6 +136,15 @@ export class HassioBackups extends LitElement { sortable: true, template: (entry: number) => Math.ceil(entry * 10) / 10 + " MB", }, + location: { + title: this.supervisor.localize("backup.location"), + width: "15%", + hidden: narrow, + filterable: true, + sortable: true, + template: (entry: string | null) => + entry || this.supervisor.localize("backup.data_disk"), + }, date: { title: this.supervisor.localize("backup.created"), width: "15%", diff --git a/src/data/hassio/backup.ts b/src/data/hassio/backup.ts index c01b9440da..b29b45590c 100644 --- a/src/data/hassio/backup.ts +++ b/src/data/hassio/backup.ts @@ -23,6 +23,7 @@ export interface HassioBackup { size: number; type: "full" | "partial"; protected: boolean; + location: string | null; content: BackupContent; } diff --git a/src/translations/en.json b/src/translations/en.json index 58056b3e1c..2b46e38cca 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -5824,6 +5824,8 @@ "download_backup": "Download backup", "create_backup": "Create backup", "create": "Create", + "location": "Location", + "data_disk": "Data disk", "created": "Created", "name": "Backup name", "type": "Backup type",