[pve-devel] [PATCH manager v2 2/4] Use afterTaskProgress to reload ourself after adding an OSD
Emmanuel Kasper
e.kasper at proxmox.com
Thu Dec 22 12:15:21 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..23626f9 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,
+ afterTaskProgress: reload
});
win.show();
}
--
2.1.4
More information about the pve-devel
mailing list