[pve-devel] [PATCH manager 5/5] gui: ceph osd: use correct reload function

Dominik Csapak d.csapak at proxmox.com
Wed Jun 5 15:59:41 CEST 2019


In this component, reload is defined as a local variable in
initComponent not on the component itself

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ceph/OSD.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index 7697cb30..cadc2b0e 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -430,7 +430,7 @@ Ext.define('PVE.node.CephOsdTree', {
 		    var win = Ext.create('Proxmox.window.TaskProgress', {
 			upid: upid,
 			taskDone: function() {
-			    me.reload();
+			    reload();
 			}
 		    });
 		    win.show();
@@ -449,7 +449,7 @@ Ext.define('PVE.node.CephOsdTree', {
 		var win = Ext.create('PVE.CephCreateOsd', {
                     nodename: nodename,
 		    taskDone: function(success) {
-			me.reload();
+			reload();
 		    }
 		});
 		win.show();
@@ -499,7 +499,7 @@ Ext.define('PVE.node.CephOsdTree', {
                     nodename: rec.data.host,
 		    osdid: rec.data.id,
 		    taskDone: function(success) {
-			me.reload();
+			reload();
 		    }
 		});
 		win.show();
-- 
2.11.0





More information about the pve-devel mailing list