diff --git a/src/app/header/header.component.html b/src/app/header/header.component.html index c7b979d266..e5d5f38971 100644 --- a/src/app/header/header.component.html +++ b/src/app/header/header.component.html @@ -8,7 +8,7 @@ - + { + protected getComponentName(): string { + return 'AuthNavMenuComponent'; + } + + protected importThemedComponent(themeName: string): Promise { + return import(`../../../themes/${themeName}/app/shared/auth-nav-menu/auth-nav-menu.component`); + } + + protected importUnthemedComponent(): Promise { + return import(`./auth-nav-menu.component`); + } +} diff --git a/src/app/shared/shared.module.ts b/src/app/shared/shared.module.ts index 9b993e551f..34ee541773 100644 --- a/src/app/shared/shared.module.ts +++ b/src/app/shared/shared.module.ts @@ -48,6 +48,7 @@ import { SearchResultGridElementComponent } from './object-grid/search-result-gr import { ViewModeSwitchComponent } from './view-mode-switch/view-mode-switch.component'; import { VarDirective } from './utils/var.directive'; import { AuthNavMenuComponent } from './auth-nav-menu/auth-nav-menu.component'; +import { ThemedAuthNavMenuComponent } from './auth-nav-menu/themed-auth-nav-menu.component'; import { LogOutComponent } from './log-out/log-out.component'; import { FormComponent } from './form/form.component'; import { DsDynamicOneboxComponent } from './form/builder/ds-dynamic-form-ui/models/onebox/dynamic-onebox.component'; @@ -292,6 +293,7 @@ const COMPONENTS = [ // put shared components here AlertComponent, AuthNavMenuComponent, + ThemedAuthNavMenuComponent, UserMenuComponent, ChipsComponent, ComcolPageContentComponent, diff --git a/src/themes/dspace/app/header/header.component.html b/src/themes/dspace/app/header/header.component.html index cf691ea6c4..0fd4d42518 100644 --- a/src/themes/dspace/app/header/header.component.html +++ b/src/themes/dspace/app/header/header.component.html @@ -8,7 +8,7 @@ - + - +