luci-mod-status: 29_ports.js: mute zone colors for disconnected ports
authorJo-Philipp Wich <jo@mein.io>
Thu, 2 Nov 2023 14:29:16 +0000 (15:29 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 2 Nov 2023 14:29:57 +0000 (15:29 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9d5e205b669431a1fc9a943de09babc42824128c)

modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/29_ports.js

index ab1852323b9b2ea1da9aa4869a1e1e3d953087b5..b5118979212c061cf00730ec9ddf61e148fbfbd0 100644 (file)
@@ -367,7 +367,7 @@ return baseclass.extend({
                                        E([], pzones.map(function(zone) {
                                                return E('div', {
                                                        'class': 'zonebadge',
-                                                       'style': 'cursor:help;flex:1;height:3px;' + firewall.getZoneColorStyle(zone)
+                                                       'style': 'cursor:help;flex:1;height:3px;opacity:' + (carrier ? 1 : 0.25) + ';' + firewall.getZoneColorStyle(zone)
                                                });
                                        })),
                                        E('span', { 'class': 'cbi-tooltip left' }, [ renderNetworksTooltip(pmap) ])