mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-28 06:15:17 +00:00
10 lines
267 B
Ruby
10 lines
267 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CancelOrdersReflex < ApplicationReflex
|
|
def confirm(params)
|
|
OrdersBulkCancelService.new(params, current_user).call
|
|
cable_ready.dispatch_event(name: "modal:close")
|
|
# flash[:success] = Spree.t(:order_updated)
|
|
end
|
|
end
|