Skip to content

Commit b0588c4

Browse files
committed
re-add missing _provider.save to properly save edits
1 parent 9596f1d commit b0588c4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • htdocs/luci-static/resources/view/https-dns-proxy

htdocs/luci-static/resources/view/https-dns-proxy/overview.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,15 @@ return view.extend({
459459
L.uci.unset(pkg.Name, section_id, "resolver_url");
460460
L.uci.unset(pkg.Name, section_id, "bootstrap_dns");
461461
};
462+
_provider.save = function (section_id) {
463+
if (this.isActive(section_id)) {
464+
var fval = this.formvalue(section_id);
465+
if (fval != null && fval !== '') {
466+
return this.write(section_id, fval);
467+
}
468+
}
469+
return this.remove(section_id);
470+
};
462471

463472
function createProviderWidget(s, i, prov) {
464473
if (

0 commit comments

Comments
 (0)