mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
luci-app-antiblock: Disable routes without deleting
1) Added the ability to disable routes without deleting them. Signed-off-by: Khachatryan Karen <karen0734@gmail.com>
This commit is contained in:
committed by
Paul Donald
parent
42d32dff7f
commit
0a09ae1805
@@ -21,6 +21,10 @@ return view.extend({
|
|||||||
o = s.option(form.Value, 'domains_path', _('Domains path'), _('Domains path/URL. If you want to add domains via LuCI, specify the files in the /etc/antiblock folder.'));
|
o = s.option(form.Value, 'domains_path', _('Domains path'), _('Domains path/URL. If you want to add domains via LuCI, specify the files in the /etc/antiblock folder.'));
|
||||||
o.default = '/etc/antiblock/';
|
o.default = '/etc/antiblock/';
|
||||||
|
|
||||||
|
o = s.option(form.Flag, 'enabled', _('Enable'));
|
||||||
|
o.default = o.enabled;
|
||||||
|
o.editable = true;
|
||||||
|
|
||||||
return m.render();
|
return m.render();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -38,6 +38,10 @@ msgstr ""
|
|||||||
msgid "Domains path:"
|
msgid "Domains path:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: applications/luci-app-antiblock/htdocs/luci-static/resources/view/antiblock/routes.js:24
|
||||||
|
msgid "Enable"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-antiblock/htdocs/luci-static/resources/view/antiblock/args.js:13
|
#: applications/luci-app-antiblock/htdocs/luci-static/resources/view/antiblock/args.js:13
|
||||||
msgid "Enabled"
|
msgid "Enabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
Reference in New Issue
Block a user