Display required fields with default value as valid

pull/2433/head
saneery 5 years ago
parent 5e8eb7d6ab
commit 7200dfe165
  1. 2
      apps/block_scout_web/lib/block_scout_web/templates/api_docs/_eth_rpc_item.html.eex

@ -66,7 +66,7 @@
<div class="col-sm-8 col-md-10">
<p class="api-doc-parameters-list-item-description"><%= param.description %></p>
<input
class="collapse form-control <%= if param.required, do: "form-control-danger is-invalid" %>"
class="collapse form-control <%= if param.required && !param.default, do: "form-control-danger is-invalid" %>"
data-parameter-type='<%= param.type %>'
data-required='<%= if param.required, do: "true", else: "false" %>'
data-selector='<%= "eth-#{@action}-try-api-ui" %>'

Loading…
Cancel
Save