Do not trigger a uci save operation on removing bridge VLANs as that might
invalidate the ephemeral section ID of a just added network device.
Fixes: #6990
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
}, this));
};
+ ss.handleRemove = function(section_id) {
+ this.map.data.remove('network', section_id);
+ s.map.addedVLANs = s.map.addedVLANs.filter(function(sid) {
+ return sid != section_id;
+ });
+
+ return this.redraw();
+ };
+
o = ss.option(form.Value, 'vlan', _('VLAN ID'));
o.datatype = 'range(1, 4094)';