Skip to content

Commit af058a4

Browse files
Merge branch 'feat/oas3' into feat/keep-server-selection-in-state
2 parents 6f8708f + 7042403 commit af058a4

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/ApiConsole.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,17 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
251251
noDocs,
252252
selectedServerValue,
253253
selectedServerType,
254+
noServerSelector,
255+
noCustomServer,
254256
} = this;
255257
return html`<api-request-panel
256258
.amf="${amf}"
257259
.selected="${selectedShape}"
258260
?narrow="${narrow}"
259261
?outlined="${outlined}"
260262
?compatibility="${compatibility}"
263+
?noServerSelector="${noServerSelector}"
264+
?noCustomServer="${noCustomServer}"
261265
.noUrlEditor="${noUrlEditor}"
262266
.redirectUri="${redirectUri}"
263267
.scrollTarget="${scrollTarget}"
@@ -289,6 +293,7 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
289293
baseUri,
290294
selectedServerValue,
291295
selectedServerType,
296+
noServerSelector,
292297
} = this;
293298
return html`<api-documentation
294299
.amf="${amf}"
@@ -297,6 +302,7 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
297302
?narrow="${narrow}"
298303
?compatibility="${compatibility}"
299304
?outlined="${outlined}"
305+
?noServerSelector="${noServerSelector}"
300306
.inlineMethods="${inlineMethods}"
301307
.noTryIt="${_noTryItValue}"
302308
.baseUri="${baseUri}"
@@ -305,7 +311,9 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
305311
@api-navigation-selection-changed="${this._apiNavigationOcurred}"
306312
.selectedServerValue="${selectedServerValue}"
307313
.selectedServerType="${selectedServerType}"
308-
></api-documentation>`;
314+
>
315+
<slot name="custom-base-uri" slot="custom-base-uri"></slot>
316+
</api-documentation>`;
309317
}
310318

311319
_navigationTemplate() {
@@ -570,6 +578,16 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
570578
* `api-request-panel`
571579
*/
572580
selectedServerType: { type: String },
581+
/**
582+
* Optional property to set
583+
* If true, the server selector is not rendered
584+
*/
585+
noServerSelector: { type: Boolean },
586+
/**
587+
* Optional property to set
588+
* If true, the server selector custom option is not rendered
589+
*/
590+
noCustomServer: { type: Boolean },
573591
};
574592
}
575593

0 commit comments

Comments
 (0)