Back to plugins & integrations

Admin UI Helper Buttons icon

Admin UI Helper Buttons

Cancel and complete order buttons for easier completion and cancellation of order

npm install @pinelab/vendure-plugin-admin-ui-helpers

Integration type

Partner
Plugins built by certified Vendure partners

Category

Other

Last published

182 days ago

Downloads in past month

54
README.md

Admin UI helper buttons for Vendure

Vendure version

Official documentation here

Cancel and complete order buttons for easier completion and cancellation of orders.

Getting started

Add the buttons you want to the AdminUiPlugin config:

import {
  cancelOrderButton,
  completeOrderButton,
} from '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,
    ],
  }),
});