Added offline device filter.

This commit is contained in:
Ylian Saint-Hilaire 2020-09-25 09:16:48 -07:00
parent d7e879ed5a
commit add30abaa4
3 changed files with 12 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -18566,7 +18566,7 @@
"zh-chs": "英特尔®AMT",
"zh-cht": "Intel® AMT",
"xloc": [
"default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->devListToolbar->DevFilterSelect->9"
"default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->devListToolbar->DevFilterSelect->11"
]
},
{
@ -25598,6 +25598,12 @@
"default.handlebars->27->2008"
]
},
{
"en": "Offline",
"xloc": [
"default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->devListToolbar->DevFilterSelect->5"
]
},
{
"cs": "Nepřipojení uživatelé",
"de": "Benutzer offline",
@ -32099,7 +32105,7 @@
"xloc": [
"default-mobile.handlebars->9->176",
"default.handlebars->27->260",
"default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->devListToolbar->DevFilterSelect->5"
"default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->devListToolbar->DevFilterSelect->7"
]
},
{
@ -33917,7 +33923,7 @@
"en": "Starred",
"nl": "Gemarkeerd",
"xloc": [
"default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->devListToolbar->DevFilterSelect->7"
"default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->devListToolbar->DevFilterSelect->9"
]
},
{

View File

@ -240,6 +240,7 @@
<select id=DevFilterSelect onchange=onOnlineCheckBox(event) title="Device Filter">
<option value=0>All</option>
<option value=1>Online</option>
<option value=5>Offline</option>
<option value=2>Sessions</option>
<option value=3>Starred</option>
<option value=4>Intel&reg; AMT</option>
@ -4619,6 +4620,7 @@
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
if (devFilter == 5) { for (var d in nodes) { if ((nodes[d].conn != null) && (nodes[d].conn != 0)) { nodes[d].v = false; } } } // Offline
}
var contextelement = null;