From e57506d5d2e309c687b5fcd6939abb023510d543 Mon Sep 17 00:00:00 2001 From: Daniel Palafox Date: Wed, 24 Jan 2024 18:15:37 -0500 Subject: [PATCH] fix: Remove global navigation from registry --- src/app/layout/header/header.component.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/app/layout/header/header.component.ts b/src/app/layout/header/header.component.ts index ab85facefa..dbbbba967e 100644 --- a/src/app/layout/header/header.component.ts +++ b/src/app/layout/header/header.component.ts @@ -69,15 +69,7 @@ export class HeaderComponent implements OnInit { _router.events.subscribe(() => { const path = location.path() this.signinRegisterButton = path !== `/${ApplicationRoutes.signin}` - this.hideMainMenu = - ORCID_REGEXP.test(path) || - path.indexOf(`/${ApplicationRoutes.myOrcid}`) !== -1 || - path === `/${ApplicationRoutes.account}` || - path === `/${ApplicationRoutes.trustedParties}` || - path === `/${ApplicationRoutes.selfService}` || - path === `/${ApplicationRoutes.inbox}` || - path === `/${ApplicationRoutes.developerTools}` || - path.indexOf(`/${ApplicationRoutes.register}`) !== -1 + this.hideMainMenu = path.indexOf(`/${ApplicationRoutes.home}`) !== -1 }) }