From 2ab71420c33ad613ec181d9a29112c1afa146d34 Mon Sep 17 00:00:00 2001 From: Tobias Schramm Date: Wed, 4 Dec 2019 02:43:06 +0100 Subject: luci-mod-network: Add description field to VLANs Having a description attached to a VLAN makes identification a lot easier when dealing with many VLANs Signed-off-by: Tobias Schramm --- .../htdocs/luci-static/resources/view/network/switch.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/luci-mod-network/htdocs/luci-static') diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js index 80c8437fc4..c20665adf0 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js @@ -334,6 +334,8 @@ return L.view.extend({ return (value || uci.get('network', section_id, 'vlan')); }; + s.option(form.Value, 'description', _('Description')); + for (var j = 0; Array.isArray(topology.ports) && j < topology.ports.length; j++) { var portspec = topology.ports[j], portstate = Array.isArray(topology.portstate) ? topology.portstate[portspec.num] : null; -- cgit v1.2.3