Skip to content

Commit fa06aeb

Browse files
committed
Rename method to make it more clear what it actually does.
1 parent ce22585 commit fa06aeb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/templates/security-scheme-template.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { toMarkdown } from '../utils/common-utils.js';
44
import base64url from 'base64url';
55
import { 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

Comments
 (0)