luci-app-acme: replace deprecated use_staging with staging
authorSergey Ponomarev <stokito@gmail.com>
Sun, 26 May 2024 04:38:42 +0000 (07:38 +0300)
committerToke Høiland-Jørgensen <toke@toke.dk>
Sun, 26 May 2024 07:58:42 +0000 (09:58 +0200)
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js

index 62002371edc4268d39bca7bd1e34781bb1d76292..0f5775a2b241f3fb48139d3583339cfc72fd4295 100644 (file)
@@ -464,7 +464,7 @@ return view.extend({
                o.modalonly = true;
 
 
-               o = s.taboption('advanced', form.Flag, 'use_staging', _('Use staging server'),
+               o = s.taboption('advanced', form.Flag, 'staging', _('Use staging server'),
                        _(
                                'Get certificate from the Letsencrypt staging server ' +
                                '(use for testing; the certificate won\'t be valid).'
@@ -507,7 +507,7 @@ return view.extend({
 
                o = s.taboption('advanced', form.Flag, "use_acme_server",
                        _("Custom ACME CA"), _("Use a custom CA instead of Let's Encrypt."));
-               o.depends("use_staging", "0");
+               o.depends("staging", "0");
                o.default = false;
                o.modalonly = true;