luci-mod-network: Add description field to VLANs 3391/head
authorTobias Schramm <tobleminer@gmail.com>
Wed, 4 Dec 2019 01:43:06 +0000 (02:43 +0100)
committerTobias Schramm <tobleminer@gmail.com>
Wed, 4 Dec 2019 12:48:37 +0000 (13:48 +0100)
Having a description attached to a VLAN makes identification a lot easier when
dealing with many VLANs

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js

index 80c8437fc4e7ba1027205e44ff324b4dbf7db6d2..c20665adf00dac1fa3ccc902df9f8d315a3cbfe3 100644 (file)
@@ -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;