[pve-devel] [PATCH manager 2/2] fix regression in gui when migrating guests

Dominik Csapak d.csapak at proxmox.com
Thu Jun 22 11:24:35 CEST 2017


with using suspend/resumeEvents the reselection of vms when migrating,
was not working correctly, fixing this by resuming before selecting

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/tree/ResourceTree.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/manager6/tree/ResourceTree.js b/www/manager6/tree/ResourceTree.js
index f306e9c5..56e7fddd 100644
--- a/www/manager6/tree/ResourceTree.js
+++ b/www/manager6/tree/ResourceTree.js
@@ -340,6 +340,8 @@ Ext.define('PVE.tree.ResourceTree', {
 		}
 	    });
 
+	    store.resumeEvents();
+
 	    // select parent node is selection vanished
 	    if (lastsel && !rootnode.findChild('id', lastsel.data.id, true)) {
 		lastsel = rootnode;
@@ -360,7 +362,6 @@ Ext.define('PVE.tree.ResourceTree', {
 	    }
 
 	    pdata.updateCount++;
-	    store.resumeEvents();
 	    store.fireEvent('refresh', store);
 	};
 
-- 
2.11.0





More information about the pve-devel mailing list