Explorar o código

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

shalvah %!s(int64=4) %!d(string=hai) anos
pai
achega
7ee6e92254
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>