Create a reflex that handles bulk orders cancelling

This commit is contained in:
cyrillefr
2023-01-19 16:38:23 +01:00
parent ad0ffd2a64
commit c302640644

View File

@@ -0,0 +1,9 @@
# frozen_string_literal: true
class CancelOrdersReflex < ApplicationReflex
def confirm(params)
OrdersBulkCancelService.new(params).call
cable_ready.dispatch_event(name: "modal:close")
# flash[:success] = Spree.t(:order_updated)
end
end