@@ -192,11 +192,11 @@ export default class ApiRequest extends LitElement {
192
192
${ this . callback === 'true' ? 'CALLBACK REQUEST' : 'REQUEST' }
193
193
</ div >
194
194
< div >
195
- ${ guard ( [ this . parameters , this . activeParameterSchemaTabs ] , ( ) => this . inputParametersTemplate ( 'path' ) ) }
196
- ${ guard ( [ this . parameters , this . activeParameterSchemaTabs ] , ( ) => this . inputParametersTemplate ( 'query' ) ) }
195
+ ${ guard ( [ this . allowTry , this . parameters , this . activeParameterSchemaTabs ] , ( ) => this . inputParametersTemplate ( 'path' ) ) }
196
+ ${ guard ( [ this . allowTry , this . parameters , this . activeParameterSchemaTabs ] , ( ) => this . inputParametersTemplate ( 'query' ) ) }
197
197
${ this . requestBodyTemplate ( ) }
198
- ${ guard ( [ this . parameters , this . activeParameterSchemaTabs ] , ( ) => this . inputParametersTemplate ( 'header' ) ) }
199
- ${ guard ( [ this . parameters , this . activeParameterSchemaTabs ] , ( ) => this . inputParametersTemplate ( 'cookie' ) ) }
198
+ ${ guard ( [ this . allowTry , this . parameters , this . activeParameterSchemaTabs ] , ( ) => this . inputParametersTemplate ( 'header' ) ) }
199
+ ${ guard ( [ this . allowTry , this . parameters , this . activeParameterSchemaTabs ] , ( ) => this . inputParametersTemplate ( 'cookie' ) ) }
200
200
${ this . allowTry === 'false' ? '' : html `${ this . apiCallTemplate ( ) } ` }
201
201
</ div >
202
202
</ div >
@@ -413,9 +413,9 @@ export default class ApiRequest extends LitElement {
413
413
</ td > `
414
414
: ''
415
415
}
416
- < td colspan =" ${ ( this . allowTry === 'true' ) ? '1' : '2' } " >
417
- ${ paramSchema . default || paramSchema . constrain || paramSchema . allowedValues || paramSchema . pattern
418
- ? html `
416
+ ${ paramSchema . default || paramSchema . constrain || paramSchema . allowedValues || paramSchema . pattern
417
+ ? html `
418
+ < td colspan =" ${ ( this . allowTry === 'true' ) ? '1' : '2' } " >
419
419
< div class ="param-constraint ">
420
420
${ paramSchema . default ? html `< span style ="font-weight:bold "> Default: </ span > ${ paramSchema . default } < br /> ` : '' }
421
421
${ paramSchema . pattern ? html `< span style ="font-weight:bold "> Pattern: </ span > ${ paramSchema . pattern } < br /> ` : '' }
@@ -438,14 +438,14 @@ export default class ApiRequest extends LitElement {
438
438
} } "
439
439
> ${ v } </ a > `
440
440
} `) }
441
- </ div > `
442
- : ''
443
- }
444
- </ td >
441
+ </ div >
442
+ </ td > `
443
+ : ''
444
+ }
445
445
</ tr >
446
446
< tr >
447
447
${ this . allowTry === 'true' ? html `< td style ="border:none "> </ td > ` : '' }
448
- < td colspan ="2 " style ="border:none; margin-top:0; padding:0 5px 8px 5px; ">
448
+ < td colspan ="2 " style ="border:none; ">
449
449
< span class ="m-markdown-small "> ${ unsafeHTML ( marked ( param . description || '' ) ) } </ span >
450
450
${ this . exampleListTemplate . call ( this , param . name , paramSchema . type , example . exampleList ) }
451
451
</ td >
0 commit comments