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:
parent
676b0fde49
commit
7b1e26699d
@ -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
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user