[PATCH luci] luci-mod-network: use "Device" label for interface "ifname"
Rafał Miłecki
zajec5 at gmail.com
Mon May 17 06:05:04 PDT 2021
From: Rafał Miłecki <rafal at milecki.pl>
UCI "interface" L3 sections use "ifname" option for pointing L2 devices.
A more accurate option would be "device" but for now adjust UI at least
to make configuration easier for LuCI users.
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
.../htdocs/luci-static/resources/view/network/interfaces.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 6eebb09e9d..f808230eca 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
@@ -869,7 +869,7 @@ return view.extend({
proto = s2.option(form.ListValue, 'proto', _('Protocol'));
proto.validate = name.validate;
- ifname = s2.option(widgets.DeviceSelect, 'ifname', _('Interface'));
+ ifname = s2.option(widgets.DeviceSelect, 'ifname', _('Device'));
ifname.noaliases = false;
ifname.optional = false;
--
2.26.2
More information about the openwrt-devel
mailing list