From 9a023dc65052695067845aef7f57a82d60219611 Mon Sep 17 00:00:00 2001 From: bwatson78 Date: Wed, 22 Jan 2025 12:51:42 -0600 Subject: [PATCH] Fixes the Single Use Link delete button. --- app/views/hyrax/file_sets/_single_use_link_rows.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/hyrax/file_sets/_single_use_link_rows.html.erb b/app/views/hyrax/file_sets/_single_use_link_rows.html.erb index 82525f7620..e1bbe67e8d 100644 --- a/app/views/hyrax/file_sets/_single_use_link_rows.html.erb +++ b/app/views/hyrax/file_sets/_single_use_link_rows.html.erb @@ -13,7 +13,10 @@ <%= link_to t('hyrax.single_use_links.delete'), hyrax.delete_single_use_link_path(params[:id], presenter), - class: 'btn btn-sm btn-danger delete-single-use-link' %> + class: 'btn btn-sm btn-danger delete-single-use-link', + method: :delete, + remote: true, + onclick: 'alert("delete request sent!")' %> <% end %>