mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Revert to using morph instead of cable_ready
The issue is with with the stimilus tooltip controller, it add some element to the DOM which create issue when it's modified by StimulusReflex. See here for a more detailed explanation: https://github.com/stimulusreflex/stimulus_reflex/issues/314#issuecomment-702479357
This commit is contained in:
@@ -8,13 +8,8 @@ module Admin
|
||||
payment_capture = OrderCaptureService.new(@order)
|
||||
|
||||
if payment_capture.call
|
||||
cable_ready.inner_html(
|
||||
selector: dom_id(@order),
|
||||
html: render(partial: "spree/admin/orders/table_row",
|
||||
locals: { order: @order.reload, success: true })
|
||||
).broadcast
|
||||
|
||||
morph :nothing
|
||||
morph dom_id(@order), render(partial: "spree/admin/orders/table_row",
|
||||
locals: { order: @order.reload, success: true })
|
||||
else
|
||||
flash[:error] = payment_capture.gateway_error || I18n.t(:payment_processing_failed)
|
||||
morph_admin_flashes
|
||||
|
||||
Reference in New Issue
Block a user