Vendure Admin UI helpers plugin

Easily create shortcut buttons in Vendure's admin dashboard with this plugin

Made by a Vendure Silver Partner!
This plugin is free for personal and commercial use. Just follow the instructions below.
  • Cancel and refund orders with a single click
  • Transition an order to "Delivered" with a single click

Installation

yarn install vendure-plugin-admin-ui-helpers

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