mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-10 14:01:27 +03:00
Local Add Device added device group view on desktop site, #3984
This commit is contained in:
parent
af052ddfe7
commit
dd4e20bd54
@ -104,13 +104,7 @@ var CreateRDPDesktop = function (canvasid) {
|
||||
if (obj.socket) { obj.socket.close(); }
|
||||
}
|
||||
|
||||
obj.m.setClipboard = function (content) {
|
||||
console.log('s1');
|
||||
if (obj.socket) {
|
||||
console.log('s2', content);
|
||||
obj.socket.send(JSON.stringify(['clipboard', content]));
|
||||
}
|
||||
}
|
||||
obj.m.setClipboard = function (content) { if (obj.socket) { obj.socket.send(JSON.stringify(['clipboard', content])); } }
|
||||
|
||||
function changeState(newstate) {
|
||||
if (obj.State == newstate) return;
|
||||
|
@ -3178,6 +3178,9 @@
|
||||
// Web page update
|
||||
mainUpdate(1 | 2 | 4 | 16);
|
||||
|
||||
// If we are looking at the device group for this device, update that.
|
||||
if ((xxcurrentView == 20) && (currentMesh != null) && (currentMesh._id == node.meshid)) { mainUpdate(4096); }
|
||||
|
||||
break;
|
||||
}
|
||||
case 'removenode': {
|
||||
@ -3194,6 +3197,9 @@
|
||||
|
||||
// Web page update
|
||||
mainUpdate(4 | 16);
|
||||
|
||||
// If we are looking at the device group for this device, update that.
|
||||
if ((xxcurrentView == 20) && (currentMesh != null) && (currentMesh._id == node.meshid)) { mainUpdate(4096); }
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -12212,6 +12218,9 @@
|
||||
x += '<a href=# onclick=\'return addAgentToMesh("' + currentMesh._id + '")\' style=cursor:pointer;margin-right:10px title="' + "Add a new computer to this device group by installing the mesh agent." + '"><img src=images/icon-addnew.png border=0 height=12 width=12> ' + "Add Agent" + '</a>';
|
||||
x += '<a href=# onclick=\'return inviteAgentToMesh("' + currentMesh._id + '")\' style=cursor:pointer;margin-right:10px title="' + "Invite someone to install the mesh agent on this device group." + '"><img src=images/icon-addnew.png border=0 height=12 width=12> ' + "Invite" + '</a>';
|
||||
}
|
||||
if ((currentMesh.mtype == 3) && ((userinfo.siteadmin == 0xFFFFFFFF) || ((userinfo.siteadmin & 4096) == 0))) {
|
||||
x += '<a href=# onclick=\'return addLocalDeviceToMesh("' + currentMesh._id + '")\' style=cursor:pointer;margin-right:10px title="' + "Add device located on the local network." + '"><img src=images/icon-addnew.png border=0 height=12 width=12> ' + "Add Device" + '</a>';
|
||||
}
|
||||
if (currentMesh.amt && (currentMesh.amt.type > 2) && ((userinfo.siteadmin == 0xFFFFFFFF) || ((userinfo.siteadmin & 4096) == 0))) { // ACM activation or Full Automatic
|
||||
x += '<a href=# style=cursor:pointer;font-size:small title="' + "Switch Intel AMT to Admin Control Mode (ACM)." + '" onclick=\'return showAmtAcmSetup()\'><img src=images/icon-installmesh.png border=0 height=12 width=12> ' + "ACM" + '</a>';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user