luci-mod-system: uhttpd.js: remove flag option overrides
authorJo-Philipp Wich <jo@mein.io>
Fri, 28 Apr 2023 21:52:45 +0000 (23:52 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 28 Apr 2023 21:53:41 +0000 (23:53 +0200)
Use standard 0/1 values for the `redirect_https` option.

Supersedes: #6332
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 58f7b27adf0087721dcb509f16745203513e15e8)

modules/luci-mod-system/htdocs/luci-static/resources/view/system/uhttpd.js

index d02e18505a7fec66c998b7df48fb61234acdf2b9..6febb4cc173246657d4aaf34718c8ce051b11f41 100644 (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();