summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-01-03 09:55:26 +0100
committerGitHub <noreply@github.com>2020-01-03 09:55:26 +0100
commit390dc2805a4798ec46f167d736e97850634a3323 (patch)
tree9efa1ebf9ecc60f85d08607344baa45864c8e994 /modules/luci-mod-network/htdocs
parente802bc969f6d32a82ffa12e3ddb58d1870c878a9 (diff)
parent2ab71420c33ad613ec181d9a29112c1afa146d34 (diff)
Merge pull request #3391 from TobleMiner/feature-vlan-description
luci-mod-network: Add description field to VLANs (trivial)
Diffstat (limited to 'modules/luci-mod-network/htdocs')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js2
1 files changed, 2 insertions, 0 deletions
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;