mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Added themed-user-menu component.
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
import {Component, Input} from '@angular/core'
|
||||||
|
import {ThemedComponent} from '../../theme-support/themed.component';
|
||||||
|
import {UserMenuComponent} from './user-menu.component';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This component represents the user nav menu.
|
||||||
|
*/
|
||||||
|
@Component({
|
||||||
|
selector: 'ds-themed-user-menu',
|
||||||
|
templateUrl: './../../theme-support/themed.component.html',
|
||||||
|
styleUrls: []
|
||||||
|
})
|
||||||
|
export class ThemedUserMenuComponent extends ThemedComponent<UserMenuComponent>{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The input flag to show user details in navbar expandable menu
|
||||||
|
*/
|
||||||
|
@Input() inExpandableNavbar = false;
|
||||||
|
|
||||||
|
protected inAndOutputNames: (keyof UserMenuComponent & keyof this)[] = ['inExpandableNavbar'];
|
||||||
|
|
||||||
|
protected getComponentName(): string {
|
||||||
|
return 'UserMenuComponent';
|
||||||
|
}
|
||||||
|
|
||||||
|
protected importThemedComponent(themeName: string): Promise<any> {
|
||||||
|
return import((`../../../../themes/${themeName}/app/shared/auth-nav-menu/user-menu/user-menu.component`));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected importUnthemedComponent(): Promise<any> {
|
||||||
|
return import('./user-menu.component');
|
||||||
|
}
|
||||||
|
}
|
@@ -284,6 +284,7 @@ import {
|
|||||||
} from '../item-page/simple/field-components/specific-field/title/themed-item-page-field.component';
|
} from '../item-page/simple/field-components/specific-field/title/themed-item-page-field.component';
|
||||||
import { BitstreamListItemComponent } from './object-list/bitstream-list-item/bitstream-list-item.component';
|
import { BitstreamListItemComponent } from './object-list/bitstream-list-item/bitstream-list-item.component';
|
||||||
import { NgxPaginationModule } from 'ngx-pagination';
|
import { NgxPaginationModule } from 'ngx-pagination';
|
||||||
|
import {ThemedUserMenuComponent} from './auth-nav-menu/user-menu/themed-user-menu.component';
|
||||||
|
|
||||||
const MODULES = [
|
const MODULES = [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
@@ -332,6 +333,7 @@ const COMPONENTS = [
|
|||||||
AuthNavMenuComponent,
|
AuthNavMenuComponent,
|
||||||
ThemedAuthNavMenuComponent,
|
ThemedAuthNavMenuComponent,
|
||||||
UserMenuComponent,
|
UserMenuComponent,
|
||||||
|
ThemedUserMenuComponent,
|
||||||
DsSelectComponent,
|
DsSelectComponent,
|
||||||
ErrorComponent,
|
ErrorComponent,
|
||||||
LangSwitchComponent,
|
LangSwitchComponent,
|
||||||
|
Reference in New Issue
Block a user