diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-02-16 00:20:55 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-02-16 00:27:37 +0100 |
commit | 21784446c1d0e1e9b2433727986e04a7e7ff86e5 (patch) | |
tree | a76194db2bc6777dde926a5a1dcdf56a872d2f1e /modules/luci-base/htdocs | |
parent | 1f525bda497a271525627d5c04ae2c87ee6a73a7 (diff) |
luci-app-firewall: fix setting unspecified zone on forwardings
Fixes: #5685
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/tools/widgets.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js index 10b65be8ec..ae17d8197d 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -187,9 +187,10 @@ var CBIZoneSelect = form.ListValue.extend({ emptyval.setAttribute('data-value', ''); } - L.dom.content(emptyval.querySelector('span'), [ - E('strong', _('Device')), E('span', ' (%s)'.format(_('input'))) - ]); + if (opt[0].allowlocal) + L.dom.content(emptyval.querySelector('span'), [ + E('strong', _('Device')), E('span', ' (%s)'.format(_('input'))) + ]); L.dom.content(anyval.querySelector('span'), [ E('strong', _('Any zone')), E('span', ' (%s)'.format(_('forward'))) |