Sha256: dab87bae2a5d75865014230f4dffc43f80d28a6374a36c973b225c073e12bee5

Contents?: true

Size: 775 Bytes

Versions: 30

Compression:

Stored size: 775 Bytes

Contents

<% if @filter_submit_success %>
  <%= turbo_stream.append_all "body" do %>
    <script>
      (function() {
        const formId = <%= @refine_filter_builder.client_id.to_json.html_safe %>
        const event = new CustomEvent("filter-submit-success", {
          bubbles: true,
          detail: {
            stableId: <%= @stable_id.to_json.html_safe %>,
            url: <%= @url_for_redirect.to_json.html_safe %>,
            formId: formId
          }
        })
        document
          .getElementById(<%= dom_id(@refine_filter_builder, "query").to_json.html_safe %>)
          .dispatchEvent(event)
      })()
    </script>
  <% end %>
<% else %>
  <%= turbo_stream.replace(dom_id(@refine_filter_builder, "query"), partial: "refine/blueprints/query") %>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
refine-rails-2.9.9 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.8 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.7 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.6 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.5 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.4 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.3 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.2 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.1 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.0 app/views/refine/blueprints/create.turbo_stream.erb