Fix for #2668.

Ylian Saint-Hilaire committed May 21, 2021 at 12:28 UTC b963bb8175df36eca2b3a12dcb87404b93554db3
2 files changed +4 -4
views/default-mobile.handlebars
+2 -2
@@ -3310,7 +3310,7 @@
3310 }
3311
3312 // Attribute: Mesh Agent
3313 - if ((node.agent != null) && (node.agent.id != null) && (mesh.mtype == 3)) {
3313 + if ((node.agent != null) && (node.agent.id != null) && (node.mtype == 3)) {
3314 if (node.agent.id == 4) { x += addDeviceAttribute("Device Type", "Windows"); }
3315 if (node.agent.id == 6) { x += addDeviceAttribute("Device Type", "Linux"); }
3316 if (node.agent.id == 29) { x += addDeviceAttribute("Device Type", "macOS"); }
@@ -3435,7 +3435,7 @@
3435 QH('p10html', x);
3436
3437 // If we are looking at a local non-windows device, enable terminal capability.
3438 - if ((mesh.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; }
3438 + if ((node.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; }
3439
3440 // Show node last 7 days timeline
3441 //drawDeviceTimeline();
views/default.handlebars
+2 -2
@@ -6273,7 +6273,7 @@
6273 }
6274
6275 // Attribute: Mesh Agent
6276 - if ((node.agent != null) && (node.agent.id != null) && (mesh.mtype == 3)) {
6276 + if ((node.agent != null) && (node.agent.id != null) && (node.mtype == 3)) {
6277 if (node.agent.id == 4) { x += addDeviceAttribute("Device Type", "Windows"); }
6278 if (node.agent.id == 6) { x += addDeviceAttribute("Device Type", "Linux"); }
6279 if (node.agent.id == 29) { x += addDeviceAttribute("Device Type", "macOS"); }
@@ -6558,7 +6558,7 @@
6558 Q('MainComputerImage').className = ((((!node.conn) || (node.conn == 0)) && (node.mtype != 3))?'gray':'');
6559
6560 // If we are looking at a local non-windows device, enable terminal capability.
6561 - if ((mesh.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; }
6561 + if ((node.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; }
6562
6563 // Setup/Refresh the desktop tab
6564 if (terminalAccess) { setupTerminal(); }