app/views/spotlight/exhibits/_contact.html.erb in blacklight-spotlight-3.5.0.4 vs app/views/spotlight/exhibits/_contact.html.erb in blacklight-spotlight-3.6.0.beta1
- old
+ new
@@ -10,10 +10,14 @@
</p>
</div>
<div class="col-md-4">
<% if contact.object.id %>
<span class="contact-email-delete-wrapper">
- <%= link_to exhibit_contact_email_path(exhibit_id: exhibit.id, id: contact.object.id), class: 'contact-email-delete btn btn-sm btn-danger', method: :delete, data: { confirm: t('.email_delete_confirmation'), remote: true } do %>
+ <%= link_to exhibit_contact_email_path(exhibit_id: exhibit.id, id: contact.object.id), class: 'contact-email-delete btn btn-sm btn-danger',
+ data: { method: :delete, turbo_method: :delete,
+ confirm: t('.email_delete_confirmation'),
+ turbo_confirm: t('.email_delete_confirmation'),
+ remote: true } do %>
<%= t('.email_delete_button') %>
<% end %>
</span>
<% end %>
<%= render partial: 'confirmation_status', locals: {contact_email: contact.object} unless contact.object.new_record? %>