]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: datastore content: add size column
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 20 Dec 2019 16:04:45 +0000 (17:04 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 20 Dec 2019 16:04:45 +0000 (17:04 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/DataStoreContent.js

index 24ca9693ffed8211af3f2d84ccc320743c437041..8ac001f4253c33a8f9465b00ecc918eb135e7f7d 100644 (file)
@@ -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: {