Small fix to web app collapse for listview with unknown power state.

This commit is contained in:
Ylian Saint-Hilaire 2019-12-26 13:01:02 -08:00
parent cc6f0dc88f
commit 9317a5cdcb
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.4.6-o",
"version": "0.4.6-p",
"keywords": [
"Remote Management",
"Intel AMT",

View File

@ -2858,7 +2858,7 @@
}
var collapseName = node.meshid;
if (sort == 1) { collapseName = 'pwr:' + node.pwr; }
if (sort == 1) { collapseName = ('pwr:' + (node.pwr?node.pwr:0)); }
else if (sort == 3) { collapseName = 'tag:**xx**xx*TaG*xx**xx**'; }
var collapsed = (sort != 3) & CollapsedGroups[collapseName];
r += '<tr name=DevxCol' + collapseName + (collapsed?' style=display:none':'') + '><td><div id=devs class=bar18 tabindex=0 onmouseover=devMouseHover(this,1) onmouseout=devMouseHover(this,0) style=height:18px;width:100%;font-size:medium onkeypress="if (event.key==\'Enter\') gotoDevice(\'' + node._id + '\',null,null,event)">';