Skip to content

Commit ba363f2

Browse files
committed
fix: show channel and server when selected operation
1 parent f67cfb8 commit ba363f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ApiUrl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ export class ApiUrl extends AmfHelperMixin(LitElement) {
191191
}
192192

193193
_getPathTemplate() {
194-
if (this.isNotHttp) {
194+
if (this.isNotHttp && !!this._method) {
195195
return html`<div class="url-channel-value"><span class="channel-url">Channel</span>${this.path}</div>`;
196196
}
197197
return undefined;
198198
}
199199

200200
getUrlTemplate() {
201-
const { url, isNotHttp } = this;
202-
if (isNotHttp) {
201+
const { url, isNotHttp, _method } = this;
202+
if (isNotHttp && !!_method) {
203203
return html`<div class="url-server-value"><span class="server-url">Server</span>${url}</div>`
204204
}
205205
return html`${url}`

0 commit comments

Comments
 (0)