Skip to content

Commit

Permalink
Add location to backups table (#16813)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jun 15, 2023
1 parent d0641d6 commit 3be601a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hassio/src/backups/hassio-backups.ts
Expand Up @@ -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%",
Expand Down
1 change: 1 addition & 0 deletions src/data/hassio/backup.ts
Expand Up @@ -23,6 +23,7 @@ export interface HassioBackup {
size: number;
type: "full" | "partial";
protected: boolean;
location: string | null;
content: BackupContent;
}

Expand Down
2 changes: 2 additions & 0 deletions src/translations/en.json
Expand Up @@ -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",
Expand Down

0 comments on commit 3be601a

Please sign in to comment.