From d570b6095e10e2c7a1a8f37f9fc3e09386ed7498 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 25 Mar 2022 08:54:38 +0100 Subject: [PATCH] Don't make the connection URL input required It might be that it's shown in response to a failed XEP-156 lookup because the user mistyped. In which case the user can just correct the JID and try again, without entering a connection URL. --- src/plugins/controlbox/templates/loginform.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/controlbox/templates/loginform.js b/src/plugins/controlbox/templates/loginform.js index 72fd73c25..26df563ae 100644 --- a/src/plugins/controlbox/templates/loginform.js +++ b/src/plugins/controlbox/templates/loginform.js @@ -34,7 +34,6 @@ const connection_url_input = () => {

${i18n_form_help}

@@ -84,7 +83,6 @@ const auth_fields = (el) => { const default_domain = api.settings.get('default_domain'); const placeholder_username = ((locked_domain || default_domain) && __('Username')) || __('user@domain'); const show_trust_checkbox = api.settings.get('allow_user_trust_override'); - const show_connection_url_input = api.settings.get('show_connection_url_input') return html`
@@ -100,7 +98,7 @@ const auth_fields = (el) => { placeholder="${placeholder_username}"/>
${ (authentication !== _converse.EXTERNAL) ? password_input() : '' } - ${ show_connection_url_input ? connection_url_input() : '' } + ${ api.settings.get('show_connection_url_input') ? connection_url_input() : '' } ${ show_trust_checkbox ? trust_checkbox(show_trust_checkbox === 'off' ? false : true) : '' }