mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 20:43:08 +00:00
finished dynamic menus
This commit is contained in:
27
src/app/navbar/navbar-section/navbar-section.component.ts
Normal file
27
src/app/navbar/navbar-section/navbar-section.component.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Component, Inject, Injector, OnInit } from '@angular/core';
|
||||
import { MenuSectionComponent } from '../../shared/menu/menu-section/menu-section.component';
|
||||
import { MenuService } from '../../shared/menu/menu.service';
|
||||
import { MenuID } from '../../shared/menu/initial-menus-state';
|
||||
import { rendersSectionForMenu } from '../../shared/menu/menu.decorator';
|
||||
import { HostWindowService } from '../../shared/host-window.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-navbar-section',
|
||||
templateUrl: './navbar-section.component.html',
|
||||
styleUrls: ['./navbar-section.component.scss']
|
||||
})
|
||||
@rendersSectionForMenu(MenuID.PUBLIC, false)
|
||||
export class NavbarSectionComponent extends MenuSectionComponent implements OnInit {
|
||||
menuID = MenuID.PUBLIC;
|
||||
|
||||
constructor(@Inject('sectionDataProvider') menuSection,
|
||||
protected menuService: MenuService,
|
||||
protected injector: Injector
|
||||
) {
|
||||
super(menuSection, menuService, injector);
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
super.ngOnInit();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user