Skip to content

Commit

Permalink
fix: Remove global navigation from registry
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPalafox committed Jan 24, 2024
1 parent 022d2a6 commit e57506d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/app/layout/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}

Expand Down

0 comments on commit e57506d

Please sign in to comment.