Fix dark mode device tags on mobile app.

This commit is contained in:
Ylian Saint-Hilaire 2021-02-17 11:40:27 -08:00
parent 235bdd911d
commit ba56256fdc

View File

@ -3161,9 +3161,9 @@
var groupingTags = '<i>' + "None" + '</i>'; var groupingTags = '<i>' + "None" + '</i>';
if (node.tags != null) { groupingTags = ''; for (var i in node.tags) { groupingTags += '<span style="background-color:lightgray;padding:3px;margin-right:4px;border-radius:5px">' + EscapeHtml(node.tags[i]) + '</span>'; } } if (node.tags != null) { groupingTags = ''; for (var i in node.tags) { groupingTags += '<span style="background-color:lightgray;padding:3px;margin-right:4px;border-radius:5px">' + EscapeHtml(node.tags[i]) + '</span>'; } }
if ((meshrights & 4) != 0) { if ((meshrights & 4) != 0) {
x += addDeviceAttribute("Tags", '<span onclick=showEditNodeValueDialog(3) style=cursor:pointer>' + groupingTags + '</span>'); x += addDeviceAttribute("Tags", '<span onclick=showEditNodeValueDialog(3) style=cursor:pointer;color:black>' + groupingTags + '</span>');
} else { } else {
x += addDeviceAttribute("Tags", groupingTags); x += addDeviceAttribute("Tags", '<span style=color:black>' + groupingTags + '</span>');
} }
x += '</table><br />'; x += '</table><br />';