mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 04:23:04 +00:00
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
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 { rendersSectionForMenu } from '../../shared/menu/menu-section.decorator';
|
|
import { MenuID } from '../../shared/menu/menu-id.model';
|
|
|
|
/**
|
|
* Represents a non-expandable section in the navbar
|
|
*/
|
|
@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 {
|
|
/**
|
|
* This section resides in the Public Navbar
|
|
*/
|
|
menuID = MenuID.PUBLIC;
|
|
|
|
constructor(@Inject('sectionDataProvider') menuSection,
|
|
protected menuService: MenuService,
|
|
protected injector: Injector
|
|
) {
|
|
super(menuSection, menuService, injector);
|
|
}
|
|
|
|
ngOnInit() {
|
|
super.ngOnInit();
|
|
}
|
|
}
|