diff options
author | Stan Grishin <stangri@melmac.ca> | 2024-01-09 03:21:20 +0000 |
---|---|---|
committer | Stan Grishin <stangri@melmac.ca> | 2024-01-09 03:21:27 +0000 |
commit | a83427fefe497fcda92a3f9b59701dc91a6f1df1 (patch) | |
tree | e3225481c6c5378fd50c454496896b1aacf10997 /applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js | |
parent | 49f9b430fd3fe835392d01bddf12ea05a2109e6e (diff) |
luci-app-https-dns-proxy: bugfix: editing providers with options
* fixes https://github.com/openwrt/luci/issues/6811
* previously editing existing provider instance with options would not
result in the correct saving of edited parameters
Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js')
-rw-r--r-- | applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js b/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js index a9bc25b905..253525fb4a 100644 --- a/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js +++ b/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js @@ -297,8 +297,8 @@ return view.extend({ section_id, "resolver_url" ); - if (_paramList.template !== template) return 0; - let resolver = pkg.templateToResolver(template, { + if (!formvalue && _paramList.template !== template) return 0; + let resolver = pkg.templateToResolver(_paramList.template, { option: formvalue || "", }); L.uci.set(pkg.Name, section_id, "resolver_url", resolver); @@ -335,8 +335,8 @@ return view.extend({ section_id, "resolver_url" ); - if (_paramText.template !== template) return 0; - let resolver = pkg.templateToResolver(template, { + if (!formvalue && _paramText.template !== template) return 0; + let resolver = pkg.templateToResolver(_paramText.template, { option: formvalue || "", }); L.uci.set(pkg.Name, section_id, "resolver_url", resolver); |