Closing modals do not allow to go back to them

This commit is contained in:
dominik-zeglen 2019-09-12 17:18:41 +02:00
parent 0cb3edb215
commit 1106cb8c92
7 changed files with 13 additions and 7 deletions

View file

@ -84,7 +84,8 @@ export const CustomerList: React.StatelessComponent<CustomerListProps> = ({
...params, ...params,
action: undefined, action: undefined,
ids: undefined ids: undefined
}) }),
true
); );
const openModal = (action: CustomerListUrlDialog, ids?: string[]) => const openModal = (action: CustomerListUrlDialog, ids?: string[]) =>

View file

@ -87,7 +87,8 @@ export const SaleList: React.StatelessComponent<SaleListProps> = ({
...params, ...params,
action: undefined, action: undefined,
ids: undefined ids: undefined
}) }),
true
); );
const openModal = (action: SaleListUrlDialog, ids?: string[]) => const openModal = (action: SaleListUrlDialog, ids?: string[]) =>

View file

@ -87,7 +87,8 @@ export const VoucherList: React.StatelessComponent<VoucherListProps> = ({
...params, ...params,
action: undefined, action: undefined,
ids: undefined ids: undefined
}) }),
true
); );
const openModal = (action: VoucherListUrlDialog, ids?: string[]) => const openModal = (action: VoucherListUrlDialog, ids?: string[]) =>

View file

@ -86,7 +86,8 @@ export const OrderDraftList: React.StatelessComponent<OrderDraftListProps> = ({
...params, ...params,
action: undefined, action: undefined,
ids: undefined ids: undefined
}) }),
true
); );
const handleCreateOrderCreateSuccess = (data: OrderDraftCreate) => { const handleCreateOrderCreateSuccess = (data: OrderDraftCreate) => {

View file

@ -83,7 +83,8 @@ export const ProductTypeList: React.StatelessComponent<
...params, ...params,
action: undefined, action: undefined,
ids: undefined ids: undefined
}) }),
true
); );
const openModal = (action: ProductTypeListUrlDialog, ids?: string[]) => const openModal = (action: ProductTypeListUrlDialog, ids?: string[]) =>

View file

@ -33,7 +33,7 @@ const ShippingZoneDetails: React.StatelessComponent<
const notify = useNotifier(); const notify = useNotifier();
const intl = useIntl(); const intl = useIntl();
const closeModal = () => navigate(shippingZoneUrl(id)); const closeModal = () => navigate(shippingZoneUrl(id), true);
const onShippingRateCreate = (data: CreateShippingRate) => { const onShippingRateCreate = (data: CreateShippingRate) => {
if (data.shippingPriceCreate.errors.length === 0) { if (data.shippingPriceCreate.errors.length === 0) {

View file

@ -78,7 +78,8 @@ export const StaffList: React.StatelessComponent<StaffListProps> = ({
...params, ...params,
action: undefined, action: undefined,
ids: undefined ids: undefined
}) }),
true
); );
const openModal = (action: StaffListUrlDialog, ids?: string[]) => const openModal = (action: StaffListUrlDialog, ids?: string[]) =>