Device session filtering fix.

This commit is contained in:
Ylian Saint-Hilaire 2020-09-15 13:53:00 -07:00
parent 36e8925c4c
commit 3f46572809
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -4619,7 +4619,7 @@
// Check filter dropdown
var devFilter = Q('DevFilterSelect').value;
if (devFilter == 1) { for (var d in nodes) { if ((nodes[d].conn == null) || (nodes[d].conn == 0)) { nodes[d].v = false; } } } // Online
if (devFilter == 2) { for (var d in nodes) { if (nodes[d].sessions == null) { nodes[d].v = false; } } } // Sessions
if (devFilter == 2) { for (var d in nodes) { var n = nodes[d]; if ((n.sessions == null) || ((n.sessions.kvm == null) && (n.sessions.terminal == null) && (n.sessions.files == null) && (n.sessions.tcp == null) && (n.sessions.udp == null))) { n.v = false; } } } // Sessions
if (devFilter == 3) { for (var d in nodes) { if (stars[nodes[d]._id] != 1) { nodes[d].v = false; } } } // Starred
if (devFilter == 4) { for (var d in nodes) { if (nodes[d].intelamt == null) { nodes[d].v = false; } } } // Intel AMT
}