Skip to content

Commit

Permalink
Close #2110 Billing pop up not load bug (#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Regene27 authored Dec 5, 2024
1 parent 7e07804 commit b011684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/spree/billing/payments/_list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
<% if action == 'credit' %>
<%= link_to_with_icon('exit.svg', Spree.t(:refund), new_billing_order_payment_refund_path(@order, payment), no_text: true, class: "btn btn-light btn-sm") if can?(:create, Spree::Refund) %>
<% elsif action == 'capture' %>
<%= link_to_with_icon("#{action}.svg", Spree.t(action), nil, no_text: true, data: { toggle: 'modal', target: "#capture-modal-#{@order.id}" }, class: "btn btn-light btn-sm") %>
<%= link_to_with_icon("#{action}.svg", Spree.t(action), nil, no_text: true, data: { toggle: 'modal', target: "#capture-modal-#{payment.id}" }, class: "btn btn-light btn-sm") %>
<%= render partial: 'spree/billing/shared/pop_up_confirmation', locals: { action: action, order: @order, payment: payment } %>
<% elsif action == 'void' %>
<%= link_to_with_icon("#{action}.svg", Spree.t(action), nil, no_text: true, data: { toggle: 'modal', target: "#void-modal-#{@order.id}" }, class: "btn btn-light btn-sm") %>
<%= link_to_with_icon("#{action}.svg", Spree.t(action), nil, no_text: true, data: { toggle: 'modal', target: "#void-modal-#{payment.id}" }, class: "btn btn-light btn-sm") %>
<%= render partial: 'spree/billing/shared/pop_up_confirmation', locals: { action: action, order: @order, payment: payment } %>
<% end %>
<% end %>
Expand Down

0 comments on commit b011684

Please sign in to comment.