[pve-devel] [PATCH manager 2/3] sort cluster log the same as task	log
    Dominik Csapak 
    d.csapak at proxmox.com
       
    Wed Feb 15 15:00:23 CET 2017
    
    
  
the task log is sorted with the newest entry on top,
so it makes sense to sort the cluster log the same way, otherwise you
have to scroll all the way to the bottom to get to the newest cluster
log entry
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/dc/Log.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/www/manager6/dc/Log.js b/www/manager6/dc/Log.js
index 25446e3..d6360d5 100644
--- a/www/manager6/dc/Log.js
+++ b/www/manager6/dc/Log.js
@@ -21,7 +21,14 @@ Ext.define('PVE.dc.Log', {
 
 	var store = Ext.create('PVE.data.DiffStore', { 
 	    rstore: logstore,
-	    appendAtStart: true 
+	    sortAfterUpdate: true,
+	    appendAtStart: true,
+	    sorters: [
+		{
+		    property : 'starttime',
+		    direction: 'DESC'
+		}
+	    ]
 	});
 
 	Ext.apply(me, {
-- 
2.1.4
    
    
More information about the pve-devel
mailing list