Skip to content
Discussion options

You must be logged in to vote

Hi,

You are right, the current docs lack examples to illustrate. I'm currently upgrading all the docs but didn't get round to that part yet.

Here's how it would work:

import { NgModule } from '@angular/core';
import { SharedModule, addNavMenuItem} from '@vendure/admin-ui/core';

@NgModule({
  imports: [SharedModule],
  providers: [
    addNavMenuItem({
      id: 'collections',  // <-- we will override the "collections" menu item
      label: 'Collections',
      routerLink: ['/catalog', 'collections'],
      requiresPermission: '__disable__' // <- we use an invalid permission which ensures it is hidden from all users
    },
    'catalog'),
  ],
})
export class MyUiExtensionModule {}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JordenLCH
Comment options

Answer selected by JordenLCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants