always show active users for offline devices #6421

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2024-10-05 21:38:49 +01:00
parent 1d87c42977
commit 19d0df7e7f
3 changed files with 275 additions and 270 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6260,6 +6260,9 @@
x += addDetailItem("Antivirus", y.join('<br />'));
}
// Active Users
if (node.users && (node.users.length > 0)) { x += addDetailItem(((node.users.length > 1)?"Active Users":"Active User"), EscapeHtml(node.users.join(', '))); }
if (x != '') { sections.push({ name: "Operating System", html: x, img: 'software' }); }
// MeshAgent

View File

@ -7592,7 +7592,7 @@
}
// Active Users
if (node.users && node.conn && (node.users.length > 0) && (node.conn & 1)) { x += addDeviceAttribute(((node.users.length > 1)?"Active Users":"Active User"), EscapeHtml(node.users.join(', '))); }
if (node.users && (node.users.length > 0)) { x += addDeviceAttribute(((node.users.length > 1)?"Active Users":"Active User"), EscapeHtml(node.users.join(', '))); }
// Display device user consent
if ((node.agent != null) && (node.agent.id != 14) && (node.mtype != 3)) {