Browse Source

Don't generate TryItOut buttons at all when interactive is off

shalvah 4 years ago
parent
commit
7ee6e92254
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/views/partials/endpoint.blade.php

+ 1 - 1
resources/views/partials/endpoint.blade.php

@@ -45,9 +45,9 @@
     Request   
     @if($settings['interactive'])
     <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-{{ $endpointId }}" onclick="tryItOut('{{ $endpointId }}');">Try it out ⚡</button>
-    @endif
     <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-{{ $endpointId }}" onclick="cancelTryOut('{{ $endpointId }}');" hidden>Cancel</button>&nbsp;&nbsp;
     <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-{{ $endpointId }}" hidden>Send Request 💥</button>
+    @endif
 </h3>
 @foreach($route['methods'] as $method)
 <p>