File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 8686 loginForm . classList . add ( "hidden" ) ;
8787 authenticatedMessage . classList . remove ( "hidden" ) ;
8888 logoutButton . classList . remove ( "hidden" ) ;
89+ messageBox . style . display = "none" ;
8990 } else {
9091 loginForm . classList . remove ( "hidden" ) ;
9192 authenticatedMessage . classList . add ( "hidden" ) ;
121122 } else if ( message . type === "clearFields" ) {
122123 document . querySelector (
123124 'input[name="authMethod"][value="oauth"]'
124- ) . checked = false ;
125+ ) . checked = true ;
125126 document . querySelector (
126127 'input[name="authMethod"][value="apiKey"]'
127- ) . checked = true ;
128+ ) . checked = false ;
128129 apiKeyInput . value = "" ;
129130 urlInput . value = "" ;
130131 tenantInput . value = "" ;
131132 authButton . disabled = true ;
132133 document
133- . querySelector ( 'input[name="authMethod"][value="apikey "]' )
134+ . querySelector ( 'input[name="authMethod"][value="oauth "]' )
134135 . dispatchEvent ( new Event ( "change" ) ) ;
135136 }
136137 } ) ;
Original file line number Diff line number Diff line change @@ -145,16 +145,16 @@ export class AuthenticationWebview {
145145 <div id="loginForm">
146146 <div class="radio-group">
147147
148- <label style="display: none;" >
148+ <label>
149149 <input type="radio" name="authMethod" value="oauth" checked> OAuth
150150 </label>
151151
152152 <label>
153- <input type="radio" name="authMethod" value="apiKey" checked >API Key
153+ <input type="radio" name="authMethod" value="apiKey">API Key
154154 </label>
155155 </div>
156156
157- <div style="display: none;" id="oauthForm" class="auth-form">
157+ <div id="oauthForm" class="auth-form">
158158 <label for="baseUri" class="form-label">Checkmarx One Base URL:</label>
159159 <input type="text" id="baseUri" class="auth-input" placeholder="Enter Checkmarx One Base URL">
160160 <div id="urls-list" class="autocomplete-items"></div>
@@ -167,7 +167,7 @@ export class AuthenticationWebview {
167167 </div>
168168
169169 <!-- (We need to return it to the next div ) (class="hidden">) -->
170- <div id="apiKeyForm"
170+ <div id="apiKeyForm" class="hidden">
171171 <label for="apiKey" class="form-label">Checkmarx One API Key:</label>
172172 <input type="password" id="apiKey" placeholder="Enter Checkmarx One API Key" class="auth-input">
173173 </div>
You can’t perform that action at this time.
0 commit comments