From d24e3295f004c87722ad59927738f208a2a84ac5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 7 May 2021 19:04:38 +0200 Subject: 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 --- .../htdocs/luci-static/resources/view/status/iptables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view/status') 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') }, [ -- cgit v1.2.3