[PATCH luci] luci-mod-network: hide aliases when selecting device for an interface

Rafał Miłecki zajec5 at gmail.com
Thu May 20 08:47:33 PDT 2021


From: Rafał Miłecki <rafal at milecki.pl>

Now that every bridge is guaranteed to be defined as a standalone device
there is no need for aliases there anymore.

Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 .../htdocs/luci-static/resources/view/network/interfaces.js  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
index a1def24b07..7a5e438d7c 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
@@ -465,8 +465,7 @@ return view.extend({
 				o.write = function() {};
 
 				o = s.taboption('general', widgets.DeviceSelect, 'ifname', _('Device'));
-				o.nobridges = false;
-				o.noaliases = false;
+				o.noaliases = true;
 				o.optional = false;
 				o.network = ifc.getName();
 
@@ -925,7 +924,7 @@ return view.extend({
 			};
 
 			ifname = s2.option(widgets.DeviceSelect, 'ifname', _('Device'));
-			ifname.noaliases = false;
+			ifname.noaliases = true;
 			ifname.optional = false;
 
 			proto = s2.option(form.ListValue, 'proto', _('Protocol'));
-- 
2.26.2




More information about the openwrt-devel mailing list