From b63576bbe705a13015d1c87cca7bbd05eb558c52 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 22 Jul 2019 16:29:42 +0200 Subject: [PATCH] luci-base: firewall.js: add zone.getDevices() and zone.getSubnets() getters Signed-off-by: Jo-Philipp Wich --- .../luci-base/htdocs/luci-static/resources/firewall.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/luci-base/htdocs/luci-static/resources/firewall.js b/modules/luci-base/htdocs/luci-static/resources/firewall.js index d034d6e01..9ae14e16d 100644 --- a/modules/luci-base/htdocs/luci-static/resources/firewall.js +++ b/modules/luci-base/htdocs/luci-static/resources/firewall.js @@ -375,6 +375,14 @@ Zone = AbstractFirewallItem.extend({ this.set('network', ' '); }, + getDevices: function() { + return L.toArray(this.get('device')); + }, + + getSubnets: function() { + return L.toArray(this.get('subnet')); + }, + getForwardingsBy: function(what) { var sections = uci.sections('firewall', 'forwarding'), forwards = []; -- 2.25.1