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:
Khachatryan Karen
2025-05-27 21:53:04 +03:00
committed by Paul Donald
parent 42d32dff7f
commit 0a09ae1805
2 changed files with 8 additions and 0 deletions

View File

@@ -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.default = '/etc/antiblock/';
o = s.option(form.Flag, 'enabled', _('Enable'));
o.default = o.enabled;
o.editable = true;
return m.render();
}
});

View File

@@ -38,6 +38,10 @@ msgstr ""
msgid "Domains path:"
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
msgid "Enabled"
msgstr ""