From 4476d7f69ef65838a471f48015a11fcfdfa28eb6 Mon Sep 17 00:00:00 2001 From: Nihal Mohammed Date: Tue, 8 Jun 2021 14:41:25 +0530 Subject: [PATCH] Disable credit button on click --- 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 8809f03d41..9b9fc16b1f 100644 --- a/app/views/spree/admin/payments/_list.html.haml +++ b/app/views/spree/admin/payments/_list.html.haml @@ -16,4 +16,4 @@ %span{class: "state #{payment.state}"}= t(payment.state, scope: :payment_states, default: payment.state.capitalize) %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), method: :put, no_text: true, data: {action: action} + = link_to_with_icon "icon-#{action}", Spree.t(action), fire_admin_order_payment_path(@order, payment, e: action), method: :put, no_text: true, data: {action: action, disable_with: ""}