ui: datastore content: add size column

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-12-20 17:04:45 +01:00
parent 9d4ebe3dfe
commit d9c38ddc1b

View 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: {