summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2021-09-03 10:46:56 +0200
committerGitHub <noreply@github.com>2021-09-03 10:46:56 +0200
commit9b7cf08c0e585b08f2c4daf546c9ad839b084bf3 (patch)
tree161c091d1e15efbf37ee2b9ee90299213097a6aa /modules/luci-mod-network/htdocs
parent848e0b3c7675dbe8d3868adeeaf0de28272494f0 (diff)
parent51ab737a4ba2b0f2a9d479cf114837c570f8d05c (diff)
Merge pull request #5008 from mpratt14/vlan-default
luci-mod-network: do not remove enable_vlan from config
Diffstat (limited to 'modules/luci-mod-network/htdocs')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js6
1 files changed, 4 insertions, 2 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 3133d27250..8c24775cab 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
@@ -180,8 +180,10 @@ return view.extend({
s = m.section(form.NamedSection, sid, 'switch', switch_title);
s.addremove = false;
- if (feat.vlan_option)
- s.option(form.Flag, feat.vlan_option, _('Enable VLAN functionality'));
+ if (feat.vlan_option) {
+ o = s.option(form.Flag, feat.vlan_option, _('Enable VLAN functionality'));
+ o.rmempty = false;
+ }
if (feat.learning_option) {
o = s.option(form.Flag, feat.learning_option, _('Enable learning and aging'));