From d9c38ddc1bd017e87d6e9eea8bddeb91a6240556 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 20 Dec 2019 17:04:45 +0100 Subject: [PATCH] ui: datastore content: add size column Signed-off-by: Thomas Lamprecht --- www/DataStoreContent.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/www/DataStoreContent.js b/www/DataStoreContent.js index 24ca9693..8ac001f4 100644 --- a/www/DataStoreContent.js +++ b/www/DataStoreContent.js @@ -1,6 +1,12 @@ Ext.define('pbs-data-store-content', { extend: 'Ext.data.Model', - fields: [ 'snapshot' ], + fields: [ + 'backup-id', + 'backup-time', + 'backup-type', + 'files', + { name: 'size', type: 'int', defaultValue: 0 }, + ], }); Ext.define('PBS.DataStoreContent', { @@ -27,6 +33,13 @@ Ext.define('PBS.DataStoreContent', { renderer: Proxmox.Utils.render_timestamp, flex: 1 }, + { + header: gettext('Size'), + sortable: true, + dataIndex: 'size', + renderer: Proxmox.Utils.format_size, + flex: 1 + }, ], store: {