From: Khachatryan Karen Date: Fri, 4 Apr 2025 15:10:10 +0000 (+0300) Subject: luci-app-antiblock: Gateway selection bug fixed X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=e6556e97fb7aa3dded50269a1f11e165cedf302b;p=project%2Fluci.git luci-app-antiblock: Gateway selection bug fixed 1) Changed from "widgets.NetworkSelect" to "widgets.DeviceSelect" Signed-off-by: Khachatryan Karen --- diff --git a/applications/luci-app-antiblock/htdocs/luci-static/resources/view/antiblock/routes.js b/applications/luci-app-antiblock/htdocs/luci-static/resources/view/antiblock/routes.js index 4c10cf08d7..65ceea5c3c 100644 --- a/applications/luci-app-antiblock/htdocs/luci-static/resources/view/antiblock/routes.js +++ b/applications/luci-app-antiblock/htdocs/luci-static/resources/view/antiblock/routes.js @@ -13,9 +13,10 @@ return view.extend({ s.addremove = true; s.nodescriptions = true; - let o = s.option(widgets.NetworkSelect, 'gateway', _('Gateway'), _('Gateway')); + let o = s.option(widgets.DeviceSelect, 'gateway', _('Gateway'), _('Gateway')); o.loopback = true; o.nocreate = true; + o.noaliases = true; 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/';