Remove "ujs-navigate": "false" from link

It somehow was causing a double loading of the page meaning flash
messages were lost. I suspect it's related to turbo/turbo link, but
I am not sure.
This commit is contained in:
Gaetan Craig-Riou
2024-02-14 16:58:33 +11:00
parent e0e89e6452
commit 8fb3f9a8b8

View File

@@ -19,4 +19,4 @@
%td.actions
- payment.actions.each do |action|
= link_to_with_icon "icon-#{action}", Spree.t(action), fire_admin_order_payment_path(@order, payment, e: action),
no_text: true, data: { method: :put, "ujs-navigate": "false", action: action, disable_with: "" }
no_text: true, data: { method: :put, action: action, disable_with: "" }