@@ -4,7 +4,7 @@ import { toMarkdown } from '../utils/common-utils.js';
44import base64url from 'base64url' ;
55import { getI18nText } from '../languages/index.js' ;
66
7- function onApiKeyChange ( apiKeyId , e ) {
7+ function onUserEnteredNewApiKeyValue ( apiKeyId , e ) {
88 e . preventDefault ( ) ;
99
1010 let apiKeyValue = '' ;
@@ -347,7 +347,7 @@ function renderSecurityScheme(v) {
347347 spellcheck ="false " class ="api-key-input fs-exclude ph-no-capture " data-hj-suppress data-sl ="mask ">
348348 < button type ="submit " class ="m-btn thin-border " style = "margin-left:5px; "
349349 part = "btn btn-outline "
350- @click ="${ ( e ) => { onApiKeyChange . call ( this , v . apiKeyId , e ) ; } } ">
350+ @click ="${ ( e ) => { onUserEnteredNewApiKeyValue . call ( this , v . apiKeyId , e ) ; } } ">
351351 ${ getI18nText ( 'authentication.set' ) }
352352 </ button > `
353353 : html `< span class ="blue-text " style ="margin-right: 1rem "> Key Applied</ span >
@@ -379,7 +379,7 @@ function renderSecurityScheme(v) {
379379 < input autocomplete ="on " name ="api-key-password " class ="api-key-password fs-exclude ph-no-capture " data-hj-suppress data-sl ="mask "
380380 type ="password " value = "${ v . password } " placeholder ="${ getI18nText ( 'authentication.password' ) } " spellcheck ="false " style = "width:100px; margin:0 5px; ">
381381 < button type ="submit " class ="m-btn thin-border "
382- @click ="${ ( e ) => { onApiKeyChange . call ( this , v . apiKeyId , e ) ; } } "
382+ @click ="${ ( e ) => { onUserEnteredNewApiKeyValue . call ( this , v . apiKeyId , e ) ; } } "
383383 part = "btn btn-outline "
384384 >
385385 ${ v . finalKeyValue ? 'UPDATE' : getI18nText ( 'authentication.set' ) }
0 commit comments