summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-11-13 15:49:01 +0100
committerPaul Donald <newtwen+github@gmail.com>2024-10-23 02:38:01 +0200
commit5b706f52d77dfe6932f6677576774f4ae32f6090 (patch)
tree68329359f7a38afe92d6d54ebf07850065777ed6 /modules/luci-base/htdocs/luci-static
parent4437b6bbfdac0079ab8c46b9412fffaf382fb3f5 (diff)
luci-base: show default forwarding target in general firewall settings
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/tools/widgets.js3
1 files changed, 3 insertions, 0 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 d946d0e093..0ba07afcde 100644
--- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
+++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
@@ -322,6 +322,9 @@ var CBIZoneForwards = form.DummyValue.extend({
if (!dzones.length)
dzones.push(E('label', { 'class': 'zonebadge zonebadge-empty' },
E('strong', this.defaults.getForward())));
+ else
+ dzones.push(E('label', { 'class': 'zonebadge zonebadge-empty' },
+ E('strong', '%s %s'.format(this.defaults.getForward(), ('all others')))));
return E('div', { 'class': 'zone-forwards' }, [
E('div', { 'class': 'zone-src' }, this.renderZone(zone)),