Set remote true for webhooks create form [SCI-9743] (#6777)

This commit is contained in:
wandji 2023-12-07 15:24:03 +01:00 committed by GitHub
parent bd89a0c9bf
commit 98b8c25c59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@
</div>
<ul class="webhooks-list collapse" id="activityFilter<%= filter.id %>">
<li class="create-webhook-container hidden">
<%= form_with model: Webhook.new, url: users_settings_webhooks_path(filter_id: filter.id, sort: @current_sort), class: 'webhook-form' do |f| %>
<%= form_with model: Webhook.new, url: users_settings_webhooks_path(filter_id: filter.id, sort: @current_sort), class: 'webhook-form', data: { remote: true } do |f| %>
<%= render partial: 'webhook_form', locals: {f: f} %>
<% end %>
</li>