luci-mod-status: 29_ports.js: mute zone colors for disconnected ports

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2023-11-02 15:29:16 +01:00
parent 408ff05c52
commit 9d5e205b66

View 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) ])