From: Tobias Schramm Date: Wed, 4 Dec 2019 01:43:06 +0000 (+0100) Subject: luci-mod-network: Add description field to VLANs X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2ab71420c33ad613ec181d9a29112c1afa146d34;p=oweals%2Fluci.git 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 --- 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 80c8437fc..c20665adf 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;