From 0473939fff65384badf6d15f30a0e236f2110b3c Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Sat, 9 Dec 2023 13:43:05 +0000 Subject: luci-app-adblock-fast: bugfix: L.uci.load * fix app not working on systems without smartdns * fix smartdns instances selection dependencies Signed-off-by: Stan Grishin --- .../htdocs/luci-static/resources/view/adblock-fast/overview.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'applications/luci-app-adblock-fast/htdocs/luci-static/resources') diff --git a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js index f34855a6f8..086200aa89 100644 --- a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js +++ b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js @@ -25,9 +25,9 @@ return view.extend({ return Promise.all([ L.resolveDefault(adb.getFileUrlFilesizes(pkg.Name), {}), L.resolveDefault(adb.getPlatformSupport(pkg.Name), {}), - L.uci.load(pkg.Name), - L.uci.load("dhcp"), - L.uci.load("smartdns"), + L.resolveDefault(L.uci.load(pkg.Name), {}), + L.resolveDefault(L.uci.load("dhcp"), {}), + L.resolveDefault(L.uci.load("smartdns"), {}), ]); }, @@ -241,6 +241,8 @@ return view.extend({ o.value("-", _("No AdBlock on SmartDNS")); o.default = "*"; o.depends("dns", "smartdns.domainset"); + o.depends("dns", "smartdns.ipset"); + o.depends("dns", "smartdns.nftset"); o.retain = true; o = s1.taboption( -- cgit v1.2.3