luci-base: show default forwarding target in general firewall settings
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 13 Nov 2020 14:49:01 +0000 (15:49 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Wed, 23 Oct 2024 00:38:01 +0000 (02:38 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js

index d946d0e0936834f31b4156278d7b1018c265060d..0ba07afcde8acd848d60b0b5b6df91d5d8da3602 100644 (file)
@@ -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)),