Skip to content

Commit 3c88c30

Browse files
authored
Merge pull request #10 from advanced-rest-client/fix/missing-media-types
Fix/missing media types
2 parents 4d6415d + 3b584a8 commit 3c88c30

25 files changed

+1909
-447
lines changed

api-body-document.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,11 +547,18 @@ class ApiBodyDocument extends AmfHelperMixin(LitElement) {
547547
_selectedMediaType,
548548
_selectedBodyId,
549549
renderReadOnly,
550+
_renderMediaSelector
550551
} = this;
551552
const hasBodyName = !!_bodyName;
552553
const hasDescription = !!_description;
553554
const hasTypeName = !!_typeName;
554555
return html`
556+
<div class="media-type-selector">
557+
<span>Media type:</span>
558+
${_renderMediaSelector ?
559+
this._mediaTypesTemplate() :
560+
html`<span class="media-type-label">${_selectedMediaType}</span>`}
561+
</div>
555562
${hasBodyName ? html`<div class="body-name type-title">${_bodyName}</div>` : ''}
556563
${hasDescription ? html`<arc-marked .markdown="${_description}" sanitize>
557564
<div slot="markdown-html" class="markdown-html" part="markdown-html" ?data-with-title="${hasTypeName}"></div>

0 commit comments

Comments
 (0)