luci-base: show default forwarding target in general firewall settings

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2020-11-13 15:49:01 +01:00 committed by Paul Donald
parent 4437b6bbfd
commit 5b706f52d7
1 changed files with 3 additions and 0 deletions

View 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)),