ui: fix sorting of backup snapshots

we have to sort the treestore not the original store where we get the data

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-06-23 12:09:47 +02:00 committed by Dietmar Maurer
parent 676b0fde49
commit 7b1e26699d

View File

@ -55,11 +55,15 @@ Ext.define('PBS.DataStoreContent', {
this.store = Ext.create('Ext.data.Store', {
model: 'pbs-data-store-snapshots',
sorters: 'backup-group',
groupField: 'backup-group',
});
this.store.on('load', this.onLoad, this);
view.getStore().setSorters([
'backup-group',
'text',
'backup-time'
]);
Proxmox.Utils.monStoreErrors(view, view.store, true);
this.reload(); // initial load
},