fix #4678: ui: don't sort storage backup content by vmid by default

instead, add the vmid as extra column, so that the user can still sort
by vmid if they wish to

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2023-04-25 09:21:28 +02:00 committed by Thomas Lamprecht
parent 73ea065ac2
commit 63d74bb632

View File

@ -222,14 +222,17 @@ Ext.define('PVE.storage.BackupView', {
};
}
me.extraColumns.vmid = {
header: gettext('VMID'),
dataIndex: 'vmid',
hidden: true,
sorter: (a, b) => (a.data.vmid ?? 0) - (b.data.vmid ?? 0),
};
me.callParent();
me.store.getSorters().clear();
me.store.setSorters([
{
property: 'vmid',
direction: 'ASC',
},
{
property: 'vdate',
direction: 'DESC',