[pve-devel] [PATCH manager] ext6migrate: fix Pool View

Dominik Csapak d.csapak at proxmox.com
Thu Mar 10 15:29:24 CET 2016


move static configuration to class definition
change applyIf to apply
and change show event to activate

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/pool/StatusView.js | 10 +++++-----
 www/manager6/pool/Summary.js    |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/www/manager6/pool/StatusView.js b/www/manager6/pool/StatusView.js
index a376e09..ce06897 100644
--- a/www/manager6/pool/StatusView.js
+++ b/www/manager6/pool/StatusView.js
@@ -2,6 +2,10 @@ Ext.define('PVE.pool.StatusView', {
     extend: 'PVE.grid.ObjectGrid',
     alias: ['widget.pvePoolStatusView'],
 
+    title: gettext('Status'),
+    cwidth1: 150,
+    interval: 30000,
+    //height: 195,
     initComponent : function() {
 	var me = this;
 
@@ -18,12 +22,8 @@ Ext.define('PVE.pool.StatusView', {
 	    }
 	};
 
-	Ext.applyIf(me, {
-	    title: gettext('Status'),
+	Ext.apply(me, {
 	    url: "/api2/json/pools/" + pool,
-	    cwidth1: 150,
-	    interval: 30000,
-	    //height: 195,
 	    rows: rows
 	});
 
diff --git a/www/manager6/pool/Summary.js b/www/manager6/pool/Summary.js
index 2f23de3..97ae33e 100644
--- a/www/manager6/pool/Summary.js
+++ b/www/manager6/pool/Summary.js
@@ -27,7 +27,7 @@ Ext.define('PVE.pool.Summary', {
 	    items: [ statusview ]
 	});
 
-	me.on('show', rstore.startUpdate);
+	me.on('activate', rstore.startUpdate);
 	me.on('hide', rstore.stopUpdate);
 	me.on('destroy', rstore.stopUpdate);	
 
-- 
2.1.4





More information about the pve-devel mailing list