mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Added themable header, footer and navbar
This commit is contained in:
29
src/app/header/themed-header.component.ts
Normal file
29
src/app/header/themed-header.component.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
import { MenuService } from '../shared/menu/menu.service';
|
||||
import { MenuID } from '../shared/menu/initial-menus-state';
|
||||
import { ThemedComponent } from '../shared/theme-support/themed.component';
|
||||
import { CommunityListPageComponent } from '../community-list-page/community-list-page.component';
|
||||
import { HeaderComponent } from './header.component';
|
||||
|
||||
/**
|
||||
* Themed wrapper for HeaderComponent
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ds-themed-header',
|
||||
styleUrls: [],
|
||||
templateUrl: '../shared/theme-support/themed.component.html',
|
||||
})
|
||||
export class ThemedHeaderComponent extends ThemedComponent<HeaderComponent> {
|
||||
protected getComponentName(): string {
|
||||
return 'HeaderComponent';
|
||||
}
|
||||
|
||||
protected importThemedComponent(themeName: string): Promise<any> {
|
||||
return import(`../../themes/${themeName}/app/header/header.component`);
|
||||
}
|
||||
|
||||
protected importUnthemedComponent(): Promise<any> {
|
||||
return import(`./header.component`);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user