Commit 36915e7a authored by Dietmar Maurer's avatar Dietmar Maurer

detectMigratedVM: also set changed wsurl (websocket url)

parent 83172dd5
...@@ -40,10 +40,9 @@ Ext.define('PVE.VNCConsole', { ...@@ -40,10 +40,9 @@ Ext.define('PVE.VNCConsole', {
Ext.Array.each(list, function(item) { Ext.Array.each(list, function(item) {
if (item.type === 'qemu' && item.vmid == me.vmid) { if (item.type === 'qemu' && item.vmid == me.vmid) {
if (item.node !== me.nodename) { if (item.node !== me.nodename) {
//console.log("MOVED VM to node " + item.node);
me.nodename = item.node; me.nodename = item.node;
me.url = "/nodes/" + me.nodename + "/" + item.type + "/" + me.vmid + "/vncproxy"; me.url = "/nodes/" + me.nodename + "/" + item.type + "/" + me.vmid + "/vncproxy";
//console.log("NEW URL " + comp.url); me.wsurl = "/nodes/" + me.nodename + "/" + item.type + "/" + me.vmid + "/vncwebsocket";
me.reloadApplet(); me.reloadApplet();
} }
return false; // break return false; // break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment