luci-base: firewall.js: fix addZone()
authorJo-Philipp Wich <jo@mein.io>
Wed, 14 Aug 2019 15:04:45 +0000 (17:04 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 14 Aug 2019 20:58:15 +0000 (22:58 +0200)
commit7610f1d9cfc64f2841faf3f74db6976dc0c190bc
tree3663bc9de68012aab5905c5ef82c6040d21a35d2
parent167ad7bb120bc30b186a70b66b0664434e54bc1b
luci-base: firewall.js: fix addZone()

When checking for an existing zone with the same name internally,
addZone() must use the nonblocking lookupZone() instead of the
promise returning public getZone() call.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/firewall.js