luci-mod-system: uhttpd.js: remove flag option overrides

Use standard 0/1 values for the `redirect_https` option.

Supersedes: #6332
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2023-04-28 23:52:45 +02:00
parent 39d387f34c
commit 58f7b27adf

View file

@ -12,9 +12,6 @@ return view.extend({
s.addremove = false;
o = s.option(form.Flag, 'redirect_https', _('Redirect to HTTPS'), _('Enable automatic redirection of <abbr title="Hypertext Transfer Protocol">HTTP</abbr> requests to <abbr title="Hypertext Transfer Protocol Secure">HTTPS</abbr> port.'));
o.enabled = 'on';
o.disabled = 'off';
o.default = o.disabled;
o.rmempty = false;
return m.render();