From 8fb3f9a8b834416fb6d2e6aa6bff187746ddcb72 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Wed, 14 Feb 2024 16:58:33 +1100 Subject: [PATCH] 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. --- app/views/spree/admin/payments/_list.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/payments/_list.html.haml b/app/views/spree/admin/payments/_list.html.haml index cbae3b95c6..975f171457 100644 --- a/app/views/spree/admin/payments/_list.html.haml +++ b/app/views/spree/admin/payments/_list.html.haml @@ -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: "" }