[pve-devel] [PATCH manager v2 3/4] Fix reload of grid when removing an OSD

Emmanuel Kasper e.kasper at proxmox.com
Thu Dec 22 12:15:22 CET 2016


The grid reload was happening too early because it should
happen after the Task associated to the Window has been
executed.
---
 www/manager6/ceph/OSD.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index 23626f9..0c6f20b 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -412,10 +412,10 @@ Ext.define('PVE.node.CephOsdTree', {
 
 		var win = Ext.create('PVE.CephRemoveOsd', {
                     nodename: rec.data.host,
-		    osdid: rec.data.id
+		    osdid: rec.data.id,
+		    afterTaskProgress: reload
 		});
 		win.show();
-		me.mon(win, 'close', reload, me);
 	    }
 	});
 
-- 
2.1.4





More information about the pve-devel mailing list