This package has been deprecated

Author message:

Moved to @pinelab/vendure-plugin-admin-ui-helpers

vendure-plugin-admin-ui-helpers
TypeScript icon, indicating that this package has built-in type declarations

7.0.0 • Public • Published

Admin UI helper buttons for Vendure

Vendure version

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,
    ],
  }),
});

Dependents (0)

Package Sidebar

Install

npm i vendure-plugin-admin-ui-helpers

Weekly Downloads

2

Version

7.0.0

License

MIT

Unpacked Size

11.1 kB

Total Files

7

Last publish

Collaborators

  • mbrug