diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-05-07 19:04:38 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-05-07 19:16:34 +0200 |
commit | d24e3295f004c87722ad59927738f208a2a84ac5 (patch) | |
tree | 67f84554ae71ed39157c0bb7f049a57cd2db7d5f /modules/luci-mod-status/htdocs/luci-static/resources/view/status | |
parent | b1a59c50ad50124a7dd779ea76d6f28a5171f75c (diff) |
luci-mod-status: iptables: always make tab pane visible
When ip6tables is not present, the tab group was not initialized,
causing the iptables status display to be empty with certain themes.
Manually mark the pane active in this case to avoid the problem.
Fixes: #5040
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view/status')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js index be45f78a7e..951c31218d 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js @@ -348,7 +348,7 @@ return view.extend({ }, [ _('Restart Firewall') ]) ]), E('div', {}, [ - E('div', { 'data-tab': 'iptables', 'data-tab-title': has_ip6tables ? _('IPv4 Firewall') : null }, [ + E('div', { 'data-tab': 'iptables', 'data-tab-title': has_ip6tables ? _('IPv4 Firewall') : null, 'data-tab-active': has_ip6tables ? null : true }, [ E('p', {}, E('em', { 'class': 'spinning' }, [ _('Collecting data...') ])) ]), has_ip6tables ? E('div', { 'data-tab': 'ip6tables', 'data-tab-title': _('IPv6 Firewall') }, [ |