Cancel and complete order buttons for easier completion and cancellation of orders.
Getting started
Add the buttons you want to the AdminUiPlugin config:
Ts
import { cancelOrderButton, completeOrderButton,} from '@pinelab/vendure-plugin-admin-ui-helpers';AdminUiPlugin.init({ port: 3002, route: 'admin', app: compileUiExtensions({ outputPath: path.join(__dirname, '__admin-ui'), extensions: [ /** * Adds a 'Complete order' to the order detail overview. * This transitions the order to the `Delivered` state. */ completeOrderButton, /** * Adds a 'Cancel order' to the order detail overview. * Cancels and refunds the order. */ cancelOrderButton, ], }),});
Changelog
Upgraded to Vendure 3.5.3
Documentation update
Updated official documentation URL
Upgraded to Vendure 3.3.2
Update Vendure to 3.1.1
Disable buttons on the ArrangingPayment state and allow vendure error to bubble by using a Promise instead of an Observable