ui: datastore content: add size column
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
		| @ -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: { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user