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:
parent
73ea065ac2
commit
63d74bb632
@ -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.callParent();
|
||||||
|
|
||||||
me.store.getSorters().clear();
|
me.store.getSorters().clear();
|
||||||
me.store.setSorters([
|
me.store.setSorters([
|
||||||
{
|
|
||||||
property: 'vmid',
|
|
||||||
direction: 'ASC',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
property: 'vdate',
|
property: 'vdate',
|
||||||
direction: 'DESC',
|
direction: 'DESC',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user