luci-app-strongswan-swanctl: rename startaction to start_action

Update form field to match the renamed 'start_action' uci option. An empty
field now defaults to 'none', matching the 'swanctl.conf'. An empty
value is also not stored in the uci. While we are at it also make this vaule
optional.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert authored and Florian Eckert committed 2026-09-30 11:58:57 +02:00
1 parent df57ae26f2
commit 839c42b347
1 file changed
+5 -3
@@ -316,12 +316,14 @@ return view.extend({
o.optional = true;
o.modalonly = true;
o = s.taboption('general', form.ListValue, 'startaction', _('Start Action'),
o = s.taboption('general', form.ListValue, 'start_action', _('Start Action'),
_('Action on initial configuration load'));
o.value('none');
o.value('', '%s (%s)'.format('none', _('default')));
o.value('trap');
o.value('start');
o.default = 'trap';
o.optional = true;
o.default = '';
o.rmempty = true;
o.modalonly = true;
o = s.taboption('general', form.ListValue, 'close_action', _('Close Action'),