luci-app-acme: Remove use_acme_server option since it's ignored by acme
authorSergey Ponomarev <stokito@gmail.com>
Sun, 26 May 2024 04:56:51 +0000 (07:56 +0300)
committerToke Høiland-Jørgensen <toke@toke.dk>
Sun, 26 May 2024 07:58:42 +0000 (09:58 +0200)
In the 1ad72c6fb5d1c49147194de4f1bca1eb9d1f8f88 was added use_acme_server flag and acme_server URL.
The problem is that the acme uses the only acme_server option.
A user may think that once the flag is turned off it will be ignored, but it's not.

To avoid confusion, it's easier just to remove the flag.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js

index 0f5775a2b241f3fb48139d3583339cfc72fd4295..5bdc0c998097e7b73b8aa6b5b2205fe9970c9e59 100644 (file)
@@ -505,15 +505,9 @@ return view.extend({
                        uci.set('acme', section_id, 'key_type', value);
                };
 
-               o = s.taboption('advanced', form.Flag, "use_acme_server",
-                       _("Custom ACME CA"), _("Use a custom CA instead of Let's Encrypt."));
-               o.depends("staging", "0");
-               o.default = false;
-               o.modalonly = true;
-
                o = s.taboption('advanced', form.Value, "acme_server", _("ACME server URL"),
-                       _("Custom ACME server directory URL."));
-               o.depends("use_acme_server", "1");
+                       _('Use a custom CA instead of Let\'s Encrypt.') +       ' ' + _('Custom ACME server directory URL.'));
+               o.depends("staging", "0");
                o.placeholder = "https://api.buypass.com/acme/directory";
                o.optional = true;
                o.modalonly = true;