From: Jo-Philipp Wich Date: Mon, 22 Jul 2019 14:29:42 +0000 (+0200) Subject: luci-base: firewall.js: add zone.getDevices() and zone.getSubnets() getters X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b63576bbe705a13015d1c87cca7bbd05eb558c52;p=oweals%2Fluci.git luci-base: firewall.js: add zone.getDevices() and zone.getSubnets() getters Signed-off-by: Jo-Philipp Wich --- 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 = [];