Orders panel: link fulfillment button to order edit page.
This commit is contained in:
parent
96eddcd1eb
commit
44b77c8e06
|
@ -25,6 +25,7 @@ import {
|
||||||
Section,
|
Section,
|
||||||
} from '@woocommerce/components';
|
} from '@woocommerce/components';
|
||||||
import { formatCurrency, getCurrencyFormatDecimal } from '@woocommerce/currency';
|
import { formatCurrency, getCurrencyFormatDecimal } from '@woocommerce/currency';
|
||||||
|
import { getAdminLink } from '@woocommerce/navigation';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
|
@ -141,7 +142,10 @@ function OrdersPanel( { orders, isRequesting, isError } ) {
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
actions={
|
actions={
|
||||||
<Button isDefault onClick={ noop }>
|
<Button
|
||||||
|
isDefault
|
||||||
|
href={ getAdminLink( 'post.php?action=edit&post=' + order.id ) }
|
||||||
|
>
|
||||||
Begin fulfillment
|
Begin fulfillment
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue