Fixed device group select all/none when not all devices are displayed.
Ylian Saint-Hilaire committed
Aug 4, 2021 at 20:34 UTC
e29d78a2d5bbe887f4702a4fc553cd69647af7ec
2 files changed
+6
-3
agents/meshcore.js
+1
-1
@@ -1901,7 +1901,7 @@ function onTunnelData(data) {
1901
var that = this.that;
1902
if (u.Active.length > 0) {
1903
var username = '"' + u.Active[0].Domain + '\\' + u.Active[0].Username + '"';
1904
- sendConsoleText('Terminal: ' + username);
1904
+ //sendConsoleText('Terminal: ' + username);
1905
if (require('win-virtual-terminal').supported) {
1906
// ConPTY PseudoTerminal
1907
that.httprequest._dispatcher = require('win-dispatcher').dispatch({ user: username, modules: [{ name: 'win-virtual-terminal', script: getJSModule('win-virtual-terminal') }], launch: { module: 'win-virtual-terminal', method: (that.httprequest.protocol == 9 ? 'StartPowerShell' : 'Start'), args: [cols, rows] } });
views/default.handlebars
+5
-2
@@ -5566,9 +5566,12 @@
5566
}
5567
// Update the list of checked nodes
5568
if (action == 1) {
5569
- for (var i in nodes) { if (nodes[i].meshid == meshid) { checkedNodeids[nodes[i]._id] = 1; } }
5569
+ for (var i in nodes) { if ((nodes[i].meshid == meshid) && (nodes[i].v == true)) { checkedNodeids[nodes[i]._id] = 1; } }
5570
} else if (action == 2) {
5571
- for (var i in checkedNodeids) { if (getNodeFromId(i).meshid == meshid) { delete checkedNodeids[i]; } }
5571
+ for (var i in checkedNodeids) {
5572
+ var n = getNodeFromId(i);
5573
+ if ((n != null) && (n.meshid == meshid) && (n.v == true)) { delete checkedNodeids[i]; }
5574
+ }
5575
}
5576
}
5577
//if (action == 3) { window.location = "multidesktop.aspx?mesh=" + meshid + "&auto=1"; }