mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
Fix for #2668.
This commit is contained in:
parent
dabb6b358e
commit
b963bb8175
@ -3310,7 +3310,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Attribute: Mesh Agent
|
// Attribute: Mesh Agent
|
||||||
if ((node.agent != null) && (node.agent.id != null) && (mesh.mtype == 3)) {
|
if ((node.agent != null) && (node.agent.id != null) && (node.mtype == 3)) {
|
||||||
if (node.agent.id == 4) { x += addDeviceAttribute("Device Type", "Windows"); }
|
if (node.agent.id == 4) { x += addDeviceAttribute("Device Type", "Windows"); }
|
||||||
if (node.agent.id == 6) { x += addDeviceAttribute("Device Type", "Linux"); }
|
if (node.agent.id == 6) { x += addDeviceAttribute("Device Type", "Linux"); }
|
||||||
if (node.agent.id == 29) { x += addDeviceAttribute("Device Type", "macOS"); }
|
if (node.agent.id == 29) { x += addDeviceAttribute("Device Type", "macOS"); }
|
||||||
@ -3435,7 +3435,7 @@
|
|||||||
QH('p10html', x);
|
QH('p10html', x);
|
||||||
|
|
||||||
// If we are looking at a local non-windows device, enable terminal capability.
|
// If we are looking at a local non-windows device, enable terminal capability.
|
||||||
if ((mesh.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; }
|
if ((node.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; }
|
||||||
|
|
||||||
// Show node last 7 days timeline
|
// Show node last 7 days timeline
|
||||||
//drawDeviceTimeline();
|
//drawDeviceTimeline();
|
||||||
|
@ -6273,7 +6273,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Attribute: Mesh Agent
|
// Attribute: Mesh Agent
|
||||||
if ((node.agent != null) && (node.agent.id != null) && (mesh.mtype == 3)) {
|
if ((node.agent != null) && (node.agent.id != null) && (node.mtype == 3)) {
|
||||||
if (node.agent.id == 4) { x += addDeviceAttribute("Device Type", "Windows"); }
|
if (node.agent.id == 4) { x += addDeviceAttribute("Device Type", "Windows"); }
|
||||||
if (node.agent.id == 6) { x += addDeviceAttribute("Device Type", "Linux"); }
|
if (node.agent.id == 6) { x += addDeviceAttribute("Device Type", "Linux"); }
|
||||||
if (node.agent.id == 29) { x += addDeviceAttribute("Device Type", "macOS"); }
|
if (node.agent.id == 29) { x += addDeviceAttribute("Device Type", "macOS"); }
|
||||||
@ -6558,7 +6558,7 @@
|
|||||||
Q('MainComputerImage').className = ((((!node.conn) || (node.conn == 0)) && (node.mtype != 3))?'gray':'');
|
Q('MainComputerImage').className = ((((!node.conn) || (node.conn == 0)) && (node.mtype != 3))?'gray':'');
|
||||||
|
|
||||||
// If we are looking at a local non-windows device, enable terminal capability.
|
// If we are looking at a local non-windows device, enable terminal capability.
|
||||||
if ((mesh.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; }
|
if ((node.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; }
|
||||||
|
|
||||||
// Setup/Refresh the desktop tab
|
// Setup/Refresh the desktop tab
|
||||||
if (terminalAccess) { setupTerminal(); }
|
if (terminalAccess) { setupTerminal(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user