Skip to content

Commit 136cd9a

Browse files
authored
When the oepration changes, while the next operation is loading, hide the "send" button from the test console (#1704)
1 parent e1ccd0d commit 136cd9a

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

src/components/operations/operation-details/ko/runtime/operation-console.html

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,33 @@
3636
<div class="text-monospace" data-bind="text: urlTemplate, attr: { 'data-method': method }"></div>
3737
<!-- /ko -->
3838

39-
<!-- ko if: $component.hostnameSelectionEnabled() || $component.showHostnameInput() -->
40-
<h3>Host</h3>
41-
42-
<div class="row flex flex-row">
43-
<div class="col-4">
44-
<label for="hostname" class="text-monospace form-label">
45-
Hostname
46-
</label>
47-
</div>
48-
<div class="col-6">
49-
<div class="form-group">
50-
<!-- ko if: $component.hostnameSelectionEnabled -->
51-
<select id="hostname" class="form-control" data-bind="value: $component.selectedHostname">
52-
<!-- ko foreach: { data: $component.hostnames, as: 'hostname' } -->
53-
<option data-bind="value: hostname, text: hostname"></option>
39+
<!-- ko if: $component.hostnameSelectionEnabled() || $component.showHostnameInput() -->
40+
<h3>Host</h3>
41+
42+
<div class="row flex flex-row">
43+
<div class="col-4">
44+
<label for="hostname" class="text-monospace form-label">
45+
Hostname
46+
</label>
47+
</div>
48+
<div class="col-6">
49+
<div class="form-group">
50+
<!-- ko if: $component.hostnameSelectionEnabled -->
51+
<select id="hostname" class="form-control" data-bind="value: $component.selectedHostname">
52+
<!-- ko foreach: { data: $component.hostnames, as: 'hostname' } -->
53+
<option data-bind="value: hostname, text: hostname"></option>
54+
<!-- /ko -->
55+
</select>
5456
<!-- /ko -->
55-
</select>
56-
<!-- /ko -->
57-
<!-- ko if: $component.showHostnameInput -->
58-
<input id="hostname" type="text" autocomplete="off" class="form-control form-control-sm"
59-
placeholder="hostname" spellcheck="false"
60-
data-bind="event: { keyup: $component.updateRequestSummary }, textInput: $component.selectedHostname">
61-
<!-- /ko -->
57+
<!-- ko if: $component.showHostnameInput -->
58+
<input id="hostname" type="text" autocomplete="off" class="form-control form-control-sm"
59+
placeholder="hostname" spellcheck="false"
60+
data-bind="event: { keyup: $component.updateRequestSummary }, textInput: $component.selectedHostname">
61+
<!-- /ko -->
62+
</div>
6263
</div>
6364
</div>
64-
</div>
65-
<!-- /ko -->
65+
<!-- /ko -->
6666

6767
<!-- ko if: $component.isHostnameWildcarded -->
6868
<div class="row flex flex-row">
@@ -564,7 +564,7 @@ <h3>HTTP response</h3>
564564
<!--/ko-->
565565
</div>
566566
<div class="panel">
567-
567+
<!-- ko ifnot: working -->
568568
<div class="flex flex-column align-items-end">
569569
<div class="btn-group" role="group">
570570
<!-- ko if: !$component.sendingRequest() && $component.selectedLanguage() === 'http' -->
@@ -597,4 +597,5 @@ <h3>HTTP response</h3>
597597
</div>
598598
</div>
599599
<!-- /ko -->
600+
<!-- /ko -->
600601
</div>

0 commit comments

Comments
 (0)