diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-01-19 19:37:28 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-01-19 19:38:07 +0100 |
commit | f1771d14aaa5f489d925f4ae775ae54a74ed7b81 (patch) | |
tree | e720b9c85eae07248419b63e0087746d6e648c37 /applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js | |
parent | afaa4e2de8ac9a6a626bc2aed54733a4c89dc2e5 (diff) |
luci-app-firewall: add SNAT config migration
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js')
-rw-r--r-- | applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js index 2db02d9444..9efa1a7497 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js @@ -106,11 +106,19 @@ return L.view.extend({ load: function() { return Promise.all([ this.callHostHints(), - this.callNetworkDevices() + this.callNetworkDevices(), + uci.load('firewall') ]); }, render: function(data) { + if (fwtool.checkLegacySNAT()) + return fwtool.renderMigration(); + else + return this.renderNats(data); + }, + + renderNats: function(data) { var hosts = data[0], devs = data[1], m, s, o; |