diff mbox series

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

Message ID 20210520154733.24920-1-zajec5@gmail.com
State Under Review
Delegated to: Rafał Miłecki
Headers show
Series [luci] luci-mod-network: hide aliases when selecting device for an interface | expand

Commit Message

Rafał Miłecki May 20, 2021, 3:47 p.m. UTC
From: Rafał Miłecki <rafal@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@milecki.pl>
---
 .../htdocs/luci-static/resources/view/network/interfaces.js  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

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'));