mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 23:43:01 +00:00
Added themable header, footer and navbar
This commit is contained in:
25
src/app/navbar/themed-navbar.component.ts
Normal file
25
src/app/navbar/themed-navbar.component.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { ThemedComponent } from '../shared/theme-support/themed.component';
|
||||
import { NavbarComponent } from './navbar.component';
|
||||
|
||||
/**
|
||||
* Themed wrapper for NavbarComponent
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ds-themed-navbar',
|
||||
styleUrls: [],
|
||||
templateUrl: '../shared/theme-support/themed.component.html',
|
||||
})
|
||||
export class ThemedNavbarComponent extends ThemedComponent<NavbarComponent> {
|
||||
protected getComponentName(): string {
|
||||
return 'NavbarComponent';
|
||||
}
|
||||
|
||||
protected importThemedComponent(themeName: string): Promise<any> {
|
||||
return import(`../../themes/${themeName}/app/navbar/navbar.component`);
|
||||
}
|
||||
|
||||
protected importUnthemedComponent(): Promise<any> {
|
||||
return import(`./navbar.component`);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user