Pinelab Plugins Pinelab
# Install this plugin
npm install @pinelab/vendure-plugin-admin-ui-helpers

Admin UI helper buttons for Vendure

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

Security

We try to keep plugins small and focussed, with minimal external dependencies: preferably none. Most of our plugins are using NPM Trusted Publishing with OIDC, and the ones that aren't are in the process of being migrated.

Need help? Get In Touch