Closing modals do not allow to go back to them
This commit is contained in:
parent
0cb3edb215
commit
1106cb8c92
7 changed files with 13 additions and 7 deletions
|
@ -84,7 +84,8 @@ export const CustomerList: React.StatelessComponent<CustomerListProps> = ({
|
|||
...params,
|
||||
action: undefined,
|
||||
ids: undefined
|
||||
})
|
||||
}),
|
||||
true
|
||||
);
|
||||
|
||||
const openModal = (action: CustomerListUrlDialog, ids?: string[]) =>
|
||||
|
|
|
@ -87,7 +87,8 @@ export const SaleList: React.StatelessComponent<SaleListProps> = ({
|
|||
...params,
|
||||
action: undefined,
|
||||
ids: undefined
|
||||
})
|
||||
}),
|
||||
true
|
||||
);
|
||||
|
||||
const openModal = (action: SaleListUrlDialog, ids?: string[]) =>
|
||||
|
|
|
@ -87,7 +87,8 @@ export const VoucherList: React.StatelessComponent<VoucherListProps> = ({
|
|||
...params,
|
||||
action: undefined,
|
||||
ids: undefined
|
||||
})
|
||||
}),
|
||||
true
|
||||
);
|
||||
|
||||
const openModal = (action: VoucherListUrlDialog, ids?: string[]) =>
|
||||
|
|
|
@ -86,7 +86,8 @@ export const OrderDraftList: React.StatelessComponent<OrderDraftListProps> = ({
|
|||
...params,
|
||||
action: undefined,
|
||||
ids: undefined
|
||||
})
|
||||
}),
|
||||
true
|
||||
);
|
||||
|
||||
const handleCreateOrderCreateSuccess = (data: OrderDraftCreate) => {
|
||||
|
|
|
@ -83,7 +83,8 @@ export const ProductTypeList: React.StatelessComponent<
|
|||
...params,
|
||||
action: undefined,
|
||||
ids: undefined
|
||||
})
|
||||
}),
|
||||
true
|
||||
);
|
||||
|
||||
const openModal = (action: ProductTypeListUrlDialog, ids?: string[]) =>
|
||||
|
|
|
@ -33,7 +33,7 @@ const ShippingZoneDetails: React.StatelessComponent<
|
|||
const notify = useNotifier();
|
||||
const intl = useIntl();
|
||||
|
||||
const closeModal = () => navigate(shippingZoneUrl(id));
|
||||
const closeModal = () => navigate(shippingZoneUrl(id), true);
|
||||
|
||||
const onShippingRateCreate = (data: CreateShippingRate) => {
|
||||
if (data.shippingPriceCreate.errors.length === 0) {
|
||||
|
|
|
@ -78,7 +78,8 @@ export const StaffList: React.StatelessComponent<StaffListProps> = ({
|
|||
...params,
|
||||
action: undefined,
|
||||
ids: undefined
|
||||
})
|
||||
}),
|
||||
true
|
||||
);
|
||||
|
||||
const openModal = (action: StaffListUrlDialog, ids?: string[]) =>
|
||||
|
|
Loading…
Reference in a new issue