luci-app-lldpd: retain empty settings for advertisements flags
authorPaul Donald <newtwen+github@gmail.com>
Tue, 23 Apr 2024 00:39:24 +0000 (02:39 +0200)
committerPaul Donald <newtwen+github@gmail.com>
Tue, 23 Apr 2024 00:39:24 +0000 (02:39 +0200)
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js

index a8e32b42758c3c3ce5612ce47ab3adefed36b120..13a2c63ed964960f17b6b5a2b1768036e14a27bf 100644 (file)
@@ -152,6 +152,7 @@ return L.view.extend({
 
                o = s.taboption(tab, form.Flag, 'lldp_capability_advertisements', _('System capability advertisements'));
                o.default = '1'; //lldpd internal default
+               o.rmempty = false;
 
                // Capabilities override
                o = s.taboption(tab, form.MultiValue, 'lldp_syscapabilities',
@@ -176,6 +177,7 @@ return L.view.extend({
 
                o = s.taboption(tab, form.Flag, 'lldp_mgmt_addr_advertisements', _('System management IO advertisements'));
                o.default = '1'; //lldpd internal default
+               o.rmempty = false;
 
                // Management addresses of this system
                // This value: lldpd.init handles as a single value, and needs a CSV for lldpd.conf: 'configure system ip management pattern'