[pve-devel] [PATCH manager] fix ceph tabs switching

Dominik Csapak d.csapak at proxmox.com
Tue Apr 12 14:23:46 CEST 2016


when switching from one node to another, the activate event
is not fired on the ceph tabs, so start the store update with afterrender

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ceph/Disks.js   | 2 +-
 www/manager6/ceph/Monitor.js | 2 +-
 www/manager6/ceph/Pool.js    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/manager6/ceph/Disks.js b/www/manager6/ceph/Disks.js
index a7526b7..a58652d 100644
--- a/www/manager6/ceph/Disks.js
+++ b/www/manager6/ceph/Disks.js
@@ -104,7 +104,7 @@ Ext.define('PVE.node.CephDiskList', {
 	    tbar: [ create_btn ],
 
 	    listeners: {
-		activate: rstore.startUpdate,
+		afterrender: rstore.startUpdate,
 		hide: rstore.stopUpdate,
 		destroy: rstore.stopUpdate
 	    }
diff --git a/www/manager6/ceph/Monitor.js b/www/manager6/ceph/Monitor.js
index 4a184ae..075462a 100644
--- a/www/manager6/ceph/Monitor.js
+++ b/www/manager6/ceph/Monitor.js
@@ -189,7 +189,7 @@ Ext.define('PVE.node.CephMonList', {
 		}
 	    ],
 	    listeners: {
-		activate: rstore.startUpdate,
+		afterrender: rstore.startUpdate,
 		hide: rstore.stopUpdate,
 		destroy: rstore.stopUpdate
 	    }
diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index b1f2140..316cb36 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -194,7 +194,7 @@ Ext.define('PVE.node.CephPoolList', {
 	    selModel: sm,
 	    tbar: [ create_btn, remove_btn ],
 	    listeners: {
-		activate: rstore.startUpdate,
+		afterrender: rstore.startUpdate,
 		hide: rstore.stopUpdate,
 		destroy: rstore.stopUpdate
 	    }
-- 
2.1.4





More information about the pve-devel mailing list