mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 04:42:54 -05:00
Added support for &gotodeviceip=x.x.x.x (#6672)
This commit is contained in:
@@ -1304,6 +1304,7 @@
|
||||
delete urlargs.viewmode;
|
||||
delete urlargs.gotonode;
|
||||
delete urlargs.gotodevicename;
|
||||
delete urlargs.gotodeviceip;
|
||||
delete urlargs.gotomesh;
|
||||
delete urlargs.panel;
|
||||
|
||||
@@ -2229,6 +2230,10 @@
|
||||
var foundNode = null;
|
||||
if (nodes != null) { for (var i in nodes) { if (nodes[i].name == args.gotodevicename) { foundNode = nodes[i]._id; } } }
|
||||
if (foundNode) { gotoDevice(foundNode, xviewmode); go(xviewmode); }
|
||||
} else if (args.gotodeviceip != null) {
|
||||
var foundNode = null;
|
||||
if (nodes != null) { for (var i in nodes) { if (nodes[i].ip == args.gotodeviceip) { foundNode = nodes[i]._id; } } }
|
||||
if (foundNode) { gotoDevice(foundNode, xviewmode); go(xviewmode); }
|
||||
} else if (args.gotomesh != null) {
|
||||
if (meshes['mesh/' + domain + '/' + args.gotomesh] == null) return; // This device group is not loaded yet
|
||||
gotoMesh('mesh/' + domain + '/' + args.gotomesh);
|
||||
|
||||
Reference in New Issue
Block a user