File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ function tplAuthFields() {
88
88
return html `
89
89
< div class ="mb-3 ">
90
90
< label for ="converse-login-jid " class ="form-label "> ${ i18n_xmpp_address } :</ label >
91
- < div class ="input-group ">
91
+ < div class ="${ locked_domain ? ' input-group' : '' } ">
92
92
< input
93
93
id ="converse-login-jid "
94
94
?autofocus =${ api . settings . get ( 'auto_focus' ) ? true : false }
@@ -101,7 +101,7 @@ function tplAuthFields() {
101
101
/>
102
102
${ locked_domain ? tplDomain ( locked_domain ) : '' }
103
103
</ div >
104
- </ div >
104
+ </ div >
105
105
${ authentication !== EXTERNAL ? tplPasswordInput ( ) : '' }
106
106
${ api . settings . get ( 'show_connection_url_input' ) ? tplConnectionURLInput ( ) : '' }
107
107
${ show_trust_checkbox ? tplTrustCheckbox ( show_trust_checkbox === 'off' ? false : true ) : '' }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const u = converse.env.utils;
4
4
5
5
describe ( "The Login Form" , function ( ) {
6
6
7
- it ( "contains an addon when locked_domain is set" ,
7
+ it ( "shows the domain name when locked_domain is set" ,
8
8
mock . initConverse (
9
9
[ 'chatBoxesInitialized' ] ,
10
10
{ auto_login : false ,
@@ -19,8 +19,7 @@ describe("The Login Form", function () {
19
19
const addons = cbview . querySelectorAll ( 'div.input-group' ) ;
20
20
expect ( addons . length ) . toBe ( 1 ) ;
21
21
22
- const addon = addons [ 0 ] ;
23
- expect ( addon . innerHTML , 'jabber.hot-chilli.eu' ) ;
22
+ expect ( cbview . querySelector ( 'div.input-group' ) . textContent , 'jabber.hot-chilli.eu' ) ;
24
23
} ) )
25
24
26
25
it ( "contains a checkbox to indicate whether the computer is trusted or not" ,
You can’t perform that action at this time.
0 commit comments