Add location to backups table (#16813)

This commit is contained in:
Joakim Sørensen 2023-06-15 16:08:32 +02:00 committed by GitHub
parent d0641d64bd
commit 3be601a3b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -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%",

View File

@ -23,6 +23,7 @@ export interface HassioBackup {
size: number;
type: "full" | "partial";
protected: boolean;
location: string | null;
content: BackupContent;
}

View File

@ -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",