fix mobile ui device offline grey icon #7480
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Dec 12, 2025 at 21:09 UTC
4540880caddd1615e086b03b2f0c3c6bad487ee8
1 file changed
+3
-1
views/default-mobile.handlebars
+3
-1
@@ -4003,7 +4003,9 @@
4003
QH('MainComputerState', '<span style=font-size:12px>' + powerstate + '</span>');
4004
4005
// Set the node icon
4006
- QH('MainComputerImage', '<div class="i' + node.icon + '"></div>');
4006
+ var icon = node.icon;
4007
+ if (((!node.conn) || (node.conn == 0)) && (node.mtype != 3)) { icon += ' gray'; }
4008
+ QH('MainComputerImage', '<div class="i' + icon + '"></div>');
4009
4010
// Request the power timeline
4011
if ((powerTimelineNode != currentNode._id) && (powerTimelineReq != currentNode._id)) {