[pve-devel] [PATCH manager 2/4] Use the AfterAPICall to reload ourself after adding an OSD

Emmanuel Kasper e.kasper at proxmox.com
Tue Dec 20 11:27:45 CET 2016


pass the reload function with its context as a parameter (a closure)
---
 www/manager6/ceph/OSD.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index 3e1935a..a9b6fdb 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -370,7 +370,8 @@ Ext.define('PVE.node.CephOsdTree', {
 		var rec = sm.getSelection()[0];
 
 		var win = Ext.create('PVE.CephCreateOsd', {
-                    nodename: nodename
+                    nodename: nodename,
+                    afterAPICall: reload
 		});
 		win.show();
 	    }
-- 
2.1.4





More information about the pve-devel mailing list