diff options
author | Stan <stangri@melmac.net> | 2020-09-20 21:30:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-20 21:30:11 -0700 |
commit | c961ab9c7a117bcde1d5829d81d44aca96950ebf (patch) | |
tree | 4e25891a1246e4955b4c497070a0a694feb1b772 /applications/luci-app-simple-adblock/luasrc/model/cbi | |
parent | 09f48b71d9901484ec7ecfea1bb3805412d9eaed (diff) | |
parent | 306cfaef2a9da739af600b91d6cc5fd7f187c25a (diff) |
Merge pull request #4448 from stangri/master-luci-app-simple-adblock
luci-app-simple-adblock: support for config auto-update
Diffstat (limited to 'applications/luci-app-simple-adblock/luasrc/model/cbi')
-rw-r--r-- | applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua b/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua index 4a24897fff..ee93d73dc0 100644 --- a/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua +++ b/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua @@ -153,7 +153,9 @@ errorTable["errorRestoreCache"] = translatef("failed to move '%s' to '%s'", outp errorTable["errorOhSnap"] = translate("failed to create block-list or restart DNS resolver") errorTable["errorStopping"] = translatef("failed to stop %s", packageName) errorTable["errorDNSReload"] = translate("failed to reload/restart DNS resolver") +errorTable["errorDownloadingConfigUpdate"] = translate("failed to download Config Update file") errorTable["errorDownloadingList"] = translate("failed to download") +errorTable["errorParsingConfigUpdate"] = translate("failed to parse Config Update file") errorTable["errorParsingList"] = translate("failed to parse") errorTable["errorNoSSLSupport"] = translate("no HTTPS/SSL support on device") @@ -229,6 +231,11 @@ s = m:section(NamedSection, "config", "simple-adblock", translate("Configuration -- General options s:tab("basic", translate("Basic Configuration")) +o1 = s:taboption("basic", ListValue, "config_update_enabled", translate("Automatic Config Update"), translate("Perform config update before downloading the block/allow-lists.")) +o1:value("0", translate("Disable")) +o1:value("1", translate("Enable")) +o1.default = 0 + o2 = s:taboption("basic", ListValue, "verbosity", translate("Output Verbosity Setting"), translate("Controls system log and console output verbosity.")) o2:value("0", translate("Suppress output")) o2:value("1", translate("Some output")) |