summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-10-26 08:31:36 -0600
committerGitHub <noreply@github.com>2023-10-26 08:31:36 -0600
commit7f84135709fd2475360a8f96ad58b92107450480 (patch)
tree9947c6941173eb3cfe3d7a356d9e3d7dc5c8a8b7 /applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js
parent25dd8934f18a6cebfca1adb8a0d4b5d0bed73145 (diff)
parenta0574a3ad1c7831705d979ad09b8dcc94bbd4184 (diff)
Merge pull request #6649 from stangri/master-luci-app-adblock-fast
luci-app-adblock-fast: bugfix: localizable entries in overview
Diffstat (limited to 'applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js')
-rw-r--r--applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js6
1 files changed, 5 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 ce9041e8f8..ab36223983 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
@@ -378,7 +378,7 @@ return view.extend({
s3.anonymous = true;
s3.addremove = true;
- o = s3.option(form.DummyValue, "_size", "Size");
+ o = s3.option(form.DummyValue, "_size", _("Size"));
o.modalonly = false;
o.cfgvalue = function (section_id) {
let url = uci.get(pkg.Name, section_id, "url");
@@ -399,6 +399,10 @@ return view.extend({
o.value("allow", _("Allow"));
o.value("block", _("Block"));
o.default = "block";
+ o.textvalue = function (section_id) {
+ var val = this.cfgvalue(section_id);
+ return val == "allow" ? _("Allow") : _("Block");
+ };
o = s3.option(form.Value, "url", _("URL"));
o.optional = false;