From 5b706f52d77dfe6932f6677576774f4ae32f6090 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 13 Nov 2020 15:49:01 +0100 Subject: [PATCH] luci-base: show default forwarding target in general firewall settings Signed-off-by: Florian Eckert --- .../luci-base/htdocs/luci-static/resources/tools/widgets.js | 3 +++ 1 file changed, 3 insertions(+) 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)),