diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index c543fb3d..747333fd 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -3064,7 +3064,7 @@ // Node var icon = node.icon, nodestate = NodeStateStr(node); - if ((!node.conn) || (node.conn == 0)) { icon += ' gray'; } + if (((!node.conn) || (node.conn == 0)) && (node.mtype != 3)) { icon += ' gray'; } div.innerHTML = '
' + devNotify + '
' + name + '
' + nodestate + '
'; } else { div.innerHTML = ''; // Hide @@ -3654,12 +3654,13 @@ // Look to see if we need to update the device timeline function updateDeviceTimeline() { - if ((meshserver.State != 2) || (powerTimelineNode == null) || (powerTimelineUpdate == null) || (currentNode == null)) return; + if ((meshserver.State != 2) || (powerTimelineNode == null) || (powerTimelineUpdate == null) || (currentNode == null) || (currentNode.mtype == 3)) return; if ((powerTimelineNode == powerTimelineReq) && (currentNode._id == powerTimelineNode) && (powerTimelineUpdate < Date.now())) { powerTimelineUpdate = null; meshserver.send({ action: 'powertimeline', nodeid: currentNode._id }); } } // Draw device power bars. The bars are 766px wide. function drawDeviceTimeline() { + if (currentNode.mtype == 3) return; var timeline = null, now = Date.now(); if (currentNode._id == powerTimelineNode) { timeline = powerTimeline; } diff --git a/views/default.handlebars b/views/default.handlebars index f4666dcc..4dbcb3a7 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -558,6 +558,7 @@
+

' - QH('p10html3', x); + if (node.mtype == 3) { + // If this is a local device, there is no power timeline so display the links below the user rights. + QH('p10html3', ''); + QH('p10html5', x); + } else { + // This is a normal device, display the links below the power timeline. + QH('p10html3', x); + QH('p10html5', ''); + } // Set the node power state var powerstate = PowerStateStr(node.state); @@ -6465,7 +6474,7 @@ // Set the node icon Q('MainComputerImage').setAttribute('src', 'images/icons256-' + node.icon + '-1.png'); - Q('MainComputerImage').className = ((!node.conn) || (node.conn == 0)?'gray':''); + Q('MainComputerImage').className = ((((!node.conn) || (node.conn == 0)) && (node.mtype != 3))?'gray':''); // Setup/Refresh the desktop tab if (terminalAccess) { setupTerminal(); } @@ -7000,7 +7009,7 @@ // Look to see if we need to update the device timeline function updateDeviceTimeline() { - if ((meshserver.State != 2) || (powerTimelineNode == null) || (powerTimelineUpdate == null) || (currentNode == null)) return; + if ((meshserver.State != 2) || (powerTimelineNode == null) || (powerTimelineUpdate == null) || (currentNode == null) || (currentNode.mtype == 3)) return; if ((powerTimelineNode == powerTimelineReq) && (currentNode._id == powerTimelineNode) && (powerTimelineUpdate < Date.now())) { powerTimelineUpdate = null; meshserver.send({ action: 'powertimeline', nodeid: currentNode._id }); @@ -7010,7 +7019,7 @@ // Draw device power bars. The bars are 766px wide. function drawDeviceTimeline() { - if ((currentNode == null) || (xxcurrentView < 10) || (xxcurrentView > 19)) return; + if ((currentNode == null) || (xxcurrentView < 10) || (xxcurrentView > 19) || (currentNode.mtype == 3)) return; var timeline = null, now = Date.now(); if (currentNode._id == powerTimelineNode) { timeline = powerTimeline; }