Commit 6f80dec2 authored by Stefan Priebe's avatar Stefan Priebe Committed by Dietmar Maurer

Nodeselector: change default sort to name instead of mem

Signed-off-by: 's avatarStefan Priebe <s.priebe@profihost.ag>
parent 90cfcbe2
...@@ -19,14 +19,14 @@ Ext.define('PVE.form.NodeSelector', { ...@@ -19,14 +19,14 @@ Ext.define('PVE.form.NodeSelector', {
}, },
autoDestory: true, autoDestory: true,
sorters: [ sorters: [
{
property : 'node',
direction: 'ASC'
},
{ {
property : 'mem', property : 'mem',
direction: 'DESC' direction: 'DESC'
}, },
{
property : 'node',
direction: 'ASC'
}
] ]
}); });
...@@ -39,12 +39,14 @@ Ext.define('PVE.form.NodeSelector', { ...@@ -39,12 +39,14 @@ Ext.define('PVE.form.NodeSelector', {
{ {
header: 'Node', header: 'Node',
dataIndex: 'node', dataIndex: 'node',
sortable: true,
hideable: false, hideable: false,
flex: 1 flex: 1
}, },
{ {
header: 'Memory usage', header: 'Memory usage',
renderer: PVE.Utils.render_mem_usage, renderer: PVE.Utils.render_mem_usage,
sortable: true,
width: 100, width: 100,
dataIndex: 'mem' dataIndex: 'mem'
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment