diff options
author | Stan Grishin <stangri@melmac.ca> | 2023-12-06 08:40:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-06 08:40:46 -0700 |
commit | eb6ded749d5ed21bc29e39af04081c4e7126d618 (patch) | |
tree | 18584a99c0b28bcd13016caf1279468b1e4f7e19 /applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast | |
parent | a65af78ccfc93fddaedd2976c5f67e7abed70343 (diff) | |
parent | 4c3cdcb68e8fec3969d2dec73714e1f11c1c749c (diff) |
Merge pull request #6748 from stangri/master-luci-app-adblock-fast
luci-app-adblock-fast: sync with principal package
Diffstat (limited to 'applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast')
-rw-r--r-- | applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js | 26 |
1 files changed, 25 insertions, 1 deletions
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 ae8a4f2a08..f34855a6f8 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 @@ -38,9 +38,12 @@ return view.extend({ ipset_installed: false, nft_installed: false, dnsmasq_installed: false, - unbound_installed: false, dnsmasq_ipset_support: false, dnsmasq_nftset_support: false, + smartdns_installed: false, + smartdns_ipset_support: false, + smartdns_nftset_support: false, + unbound_installed: false, leds: [], }, }; @@ -102,6 +105,21 @@ return view.extend({ _("Please note that %s is not supported on this system.").format( "<i>smartdns.domainset</i>" ); + } else { + if (!reply.platform.smartdns_ipset_support) { + text += + "<br />" + + _("Please note that %s is not supported on this system.").format( + "<i>smartdns.ipset</i>" + ); + } + if (!reply.platform.smartdns_nftset_support) { + text += + "<br />" + + _("Please note that %s is not supported on this system.").format( + "<i>smartdns.nftset</i>" + ); + } } if (!reply.platform.unbound_installed) { text = @@ -132,6 +150,12 @@ return view.extend({ } if (reply.platform.smartdns_installed) { o.value("smartdns.domainset", _("smartdns domain set")); + if (reply.platform.smartdns_ipset_support) { + o.value("smartdns.ipset", _("smartdns ipset")); + } + if (reply.platform.smartdns_nftset_support) { + o.value("smartdns.nftset", _("smartdns nft set")); + } } if (reply.platform.unbound_installed) { o.value("unbound.adb_list", _("unbound adblock list")); |