From f1771d14aaa5f489d925f4ae775ae54a74ed7b81 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 19 Jan 2020 19:37:28 +0100 Subject: luci-app-firewall: add SNAT config migration Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/firewall/rules.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js') diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js index cc85e6676..b68f428d9 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js @@ -152,11 +152,19 @@ return L.view.extend({ load: function() { return Promise.all([ this.callHostHints(), - this.callConntrackHelpers() + this.callConntrackHelpers(), + uci.load('firewall') ]); }, render: function(data) { + if (fwtool.checkLegacySNAT()) + return fwtool.renderMigration(); + else + return this.renderRules(data); + }, + + renderRules: function(data) { var hosts = data[0], ctHelpers = data[1], m, s, o; -- cgit v1.2.3