[pve-devel] [PATCH manager] ui: ceph: fix keeping selection after operation

Fabian Ebner f.ebner at proxmox.com
Tue Jan 26 14:01:12 CET 2021


Found by having the console open and getting a message that 'me' (the
controller) does not have a method getRootNode()

Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 www/manager6/ceph/OSD.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index 421502dc..51409163 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -348,7 +348,7 @@ Ext.define('PVE.node.CephOsdTree', {
 		    view.setRootNode(data.root);
 		    view.expandAll();
 		    if (name) {
-			let node = me.getRootNode().findChild('name', name, true);
+			let node = view.getRootNode().findChild('name', name, true);
 			if (node) {
 			    view.setSelection([node]);
 			}
-- 
2.20.1






More information about the pve-devel mailing list