Commit 388c1b5c authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

dc tasks grid : keep running tasks on top

Signed-off-by: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent 44022d43
......@@ -12,18 +12,24 @@ Ext.define('PVE.dc.Tasks', {
proxy: {
type: 'pve',
url: '/api2/json/cluster/tasks'
},
}
});
var store = Ext.create('PVE.data.DiffStore', {
rstore: taskstore,
sortAfterUpdate: true,
appendAtStart: true,
sorters: [
{
property : 'pid',
direction: 'DESC'
},
{
property : 'starttime',
direction: 'DESC'
}
]
});
var store = Ext.create('PVE.data.DiffStore', {
rstore: taskstore,
appendAtStart: true
});
var run_task_viewer = function() {
......@@ -128,4 +134,4 @@ Ext.define('PVE.dc.Tasks', {
me.callParent();
}
});
\ No newline at end of file
});
......@@ -16,18 +16,24 @@ Ext.define('PVE.dc.Tasks', {
proxy: {
type: 'pve',
url: '/api2/json/cluster/tasks'
},
}
});
var store = Ext.create('PVE.data.DiffStore', {
rstore: taskstore,
sortAfterUpdate: true,
appendAtStart: true,
sorters: [
{
property : 'pid',
direction: 'DESC'
},
{
property : 'starttime',
direction: 'DESC'
}
]
});
var store = Ext.create('PVE.data.DiffStore', {
rstore: taskstore,
appendAtStart: true
});
var run_task_viewer = function() {
......@@ -132,4 +138,4 @@ Ext.define('PVE.dc.Tasks', {
me.callParent();
}
});
\ No newline at end of file
});
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