luci-app-antiblock: Gateway selection bug fixed
authorKhachatryan Karen <[email protected]>
Fri, 4 Apr 2025 15:10:10 +0000 (18:10 +0300)
committerPaul Donald <[email protected]>
Fri, 4 Apr 2025 16:08:10 +0000 (18:08 +0200)
1) Changed from "widgets.NetworkSelect" to "widgets.DeviceSelect"

Signed-off-by: Khachatryan Karen <[email protected]>
(cherry picked from commit e6556e97fb7aa3dded50269a1f11e165cedf302b)

applications/luci-app-antiblock/htdocs/luci-static/resources/view/antiblock/routes.js

index 4c10cf08d7194b2a501c80950138c2fe9a89eba9..65ceea5c3c6485ef3c45e3e0bd9bbb61b02796aa 100644 (file)
@@ -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/';