Orders panel: link fulfillment button to order edit page.

This commit is contained in:
Jeff Stieler 2018-11-30 15:26:20 -07:00
parent 96eddcd1eb
commit 44b77c8e06
1 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import {
Section,
} from '@woocommerce/components';
import { formatCurrency, getCurrencyFormatDecimal } from '@woocommerce/currency';
import { getAdminLink } from '@woocommerce/navigation';
/**
* Internal dependencies
@ -141,7 +142,10 @@ function OrdersPanel( { orders, isRequesting, isError } ) {
</div>
}
actions={
<Button isDefault onClick={ noop }>
<Button
isDefault
href={ getAdminLink( 'post.php?action=edit&post=' + order.id ) }
>
Begin fulfillment
</Button>
}