@@ -11,8 +11,8 @@ import { Component, computed, inject, output } from '@angular/core';
1111import { toSignal } from '@angular/core/rxjs-interop' ;
1212import { ActivatedRoute , NavigationEnd , Router , RouterLink , RouterLinkActive } from '@angular/router' ;
1313
14- import { MODERATION_MENU_ITEM , PROJECT_MENU_ITEMS , REGISTRATION_MENU_ITEMS } from '@core/constants' ;
15- import { NavigationService } from '@core/services ' ;
14+ import { MENU_ITEMS , MODERATION_MENU_ITEM , PROJECT_MENU_ITEMS , REGISTRATION_MENU_ITEMS } from '@core/constants' ;
15+ import { filterMenuItems } from '@osf/ core/helpers ' ;
1616import { ProviderSelectors } from '@osf/core/store/provider' ;
1717import { UserSelectors } from '@osf/core/store/user' ;
1818import { AuthSelectors } from '@osf/features/auth/store' ;
@@ -29,7 +29,6 @@ export class NavMenuComponent {
2929
3030 private readonly router = inject ( Router ) ;
3131 private readonly route = inject ( ActivatedRoute ) ;
32- private readonly navigationService = inject ( NavigationService ) ;
3332
3433 private readonly isAuthenticated = select ( AuthSelectors . isAuthenticated ) ;
3534
@@ -61,7 +60,7 @@ export class NavMenuComponent {
6160
6261 protected readonly mainMenuItems = computed ( ( ) => {
6362 const isAuthenticated = this . isAuthenticated ( ) ;
64- const menuItems = this . navigationService . getFilteredMenuItems ( isAuthenticated ) ;
63+ const menuItems = filterMenuItems ( MENU_ITEMS , isAuthenticated ) ;
6564
6665 if ( this . isRegistryRouteDetails ( ) ) {
6766 menuItems . map ( ( menuItem ) => {
0 commit comments