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 a9b6fdb..05abc21 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,
+                   afterAPICall: reload
                });
                win.show();
-               me.mon(win, 'close', reload, me);
            }
        });
 
-- 
2.1.4


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to