Skip to content

Commit 8f9e3c8

Browse files
committed
fixes #749 and fixes #754 - do not navigate to auth section if it is hidden or update-routes is false
1 parent adb1c69 commit 8f9e3c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/templates/security-scheme-template.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,10 @@ export function pathSecurityTemplate(pathSecurity) {
520520
${i !== 0 ? html`<div style="padding:3px 4px;"> OR </div>` : ''}
521521
<div class="tooltip">
522522
<div style = "padding:2px 4px; white-space:nowrap; text-overflow:ellipsis;max-width:150px; overflow:hidden;">
523-
<a part="anchor anchor-operation-security" href="#auth"> ${orSecurityItem1.securityTypes} </a>
523+
${this.updateRoute === 'true' && this.allowAuthentication === 'true'
524+
? html`<a part="anchor anchor-operation-security" href="#auth"> ${orSecurityItem1.securityTypes} </a>`
525+
: html`${orSecurityItem1.securityTypes}`
526+
}
524527
</div>
525528
<div class="tooltip-text" style="position:absolute; color: var(--fg); top:26px; right:0; border:1px solid var(--border-color);padding:2px 4px; display:block;">
526529
${orSecurityItem1.securityDefs.length > 1 ? html`<div>Requires <b>all</b> of the following </div>` : ''}

0 commit comments

Comments
 (0)