]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: fix sorting of backup snapshots
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 23 Jun 2020 10:09:47 +0000 (12:09 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 24 Jun 2020 05:01:09 +0000 (07:01 +0200)
we have to sort the treestore not the original store where we get the data

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/DataStoreContent.js

index 9703971630a51740e41e523c7e0b66656133e72d..38daf8768cf4ce790c1fb85d8413b3c90749ac6e 100644 (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
        },