File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ export function pathSecurityTemplate(pathSecurity) {
395
395
${ orSecurityKeys1 . map ( ( orSecurityItem1 , i ) => html `
396
396
${ i !== 0 ? html `< div style ="padding:3px 4px; "> OR </ div > ` : '' }
397
397
< div class ="tooltip ">
398
- < div style = "padding:2px 4px; white-space:nowrap; text-overflow:ellipsis;max-width:150px; overflow:hidden; "> ${ orSecurityItem1 . securityTypes } </ div >
398
+ < div style = "padding:2px 4px; white-space:nowrap; text-overflow:ellipsis;max-width:150px; overflow:hidden; "> < a href =" #auth " > ${ orSecurityItem1 . securityTypes } </ a > </ div >
399
399
< 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; ">
400
400
${ orSecurityItem1 . securityDefs . length > 1 ? html `< div > Requires < b > all</ b > of the following </ div > ` : '' }
401
401
< div style ="padding-left: 8px ">
@@ -404,7 +404,7 @@ export function pathSecurityTemplate(pathSecurity) {
404
404
? html `
405
405
< div >
406
406
${ orSecurityItem1 . securityDefs . length > 1 ? html `< b > ${ j + 1 } .</ b > ` : html `Requires` }
407
- OAuth Token (${ andSecurityItem . apiKeyId } ) in < b > Authorization header</ b >
407
+ OAuth Token (${ andSecurityItem . apiKeyId } ) in < b > Authorization header</ b > ${ orSecurityItem1 . pathScopes !== '' ? html `. Required scopes: < ul > ${ orSecurityItem1 . pathScopes . split ( ', ' ) . map ( ( scope ) => html ` < li > ${ scope } </ li > ` ) } </ ul > ` : '' }
408
408
</ div > `
409
409
: andSecurityItem . type === 'http'
410
410
? html `
You can’t perform that action at this time.
0 commit comments