Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add items to Order Detail dropdown menu, instead of the action bar #2678

Closed
martijnvdbrug opened this issue Feb 14, 2024 · 1 comment
Closed
Labels
next minor Candidate for the next minor release @vendure/admin-ui

Comments

@martijnvdbrug
Copy link
Collaborator

martijnvdbrug commented Feb 14, 2024

Is your feature request related to a problem? Please describe.
For less urgent actions, it would be nice to be able to add items to the dropdown menu on detail pages, for example the order detail page:

image

Describe the solution you'd like
I would like to be able to register dropdown menu items, similar to how action bar items are registered:

    addOrderDropDownMenuItem({
        id: 'print-invoice',
        label: 'Print invoice',
        // The route can be a constant value...
        routerLink: ['./extensions/order-invoices'],
    }),

As far as I can see this would only make sense on the Order Detail Page.

Describe alternatives you've considered
Adding to action bar, but with 4+ actions the action bar gets cluttered.

@martijnvdbrug martijnvdbrug changed the title Add items to Order Detail r Dropdown menu, instead of the action bar itselg Add items to Order Detail dropdown menu, instead of the action bar Feb 14, 2024
@michaelbromley michaelbromley added @vendure/admin-ui next minor Candidate for the next minor release labels Feb 14, 2024
@michaelbromley
Copy link
Member

Right now we have the action bar dropdown on only 2 screens:

  • product list
  • order detail

But I think we should give the possibility of adding dropdown menu items to any list/detail page, just like we do with action bar items.

I'll work on an API similar to addActionBarItem, but named something like addActionBarDropdownItem(). I think this could prove really useful for plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next minor Candidate for the next minor release @vendure/admin-ui
Projects
Status: Done
Development

No branches or pull requests

2 participants