Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add success callbacks

dominik-zeglen53bee1cf6b0b
diff --git a/saleor/static/dashboard-next/orders/containers/OrderOperations.tsx b/saleor/static/dashboard-next/orders/containers/OrderOperations.tsx
index c046360110..7372456364 100644
--- a/saleor/static/dashboard-next/orders/containers/OrderOperations.tsx
+++ b/saleor/static/dashboard-next/orders/containers/OrderOperations.tsx
@@ -74,13 +74,15 @@ const OrderOperations: React.StatelessComponent<OrderOperationsProps> = ({
onError,
onFulfillmentCreate,
onNoteAdd,
+ onOrderCancel,
+ onOrderRelease,
onPaymentCapture,
onPaymentRefund,
onUpdate
}) => (
- <OrderReleaseMutationProvider>
+ <OrderReleaseMutationProvider onError={onError} onSuccess={onOrderRelease}>
{orderRelease => (
- <OrderCancelMutationProvider>
+ <OrderCancelMutationProvider onError={onError} onSuccess={onOrderCancel}>
{orderCancel => (
<OrderPaymentCaptureProvider
id={order}