navbar-section.component.ts (dspace-angular-dspace-7.0) | : | navbar-section.component.ts (dspace-angular-dspace-7.1) | ||
---|---|---|---|---|
import { Component, Inject, Injector, OnInit } from '@angular/core'; | import { Component, Inject, Injector, OnInit } from '@angular/core'; | |||
import { MenuSectionComponent } from '../../shared/menu/menu-section/menu-sectio n.component'; | import { MenuSectionComponent } from '../../shared/menu/menu-section/menu-sectio n.component'; | |||
import { MenuService } from '../../shared/menu/menu.service'; | import { MenuService } from '../../shared/menu/menu.service'; | |||
import { MenuID } from '../../shared/menu/initial-menus-state'; | import { MenuID } from '../../shared/menu/initial-menus-state'; | |||
import { rendersSectionForMenu } from '../../shared/menu/menu-section.decorator' ; | import { rendersSectionForMenu } from '../../shared/menu/menu-section.decorator' ; | |||
/** | /** | |||
* Represents a non-expandable section in the navbar | * Represents a non-expandable section in the navbar | |||
*/ | */ | |||
@Component({ | @Component({ | |||
selector: 'ds-navbar-section', | /* tslint:disable:component-selector */ | |||
selector: 'li[ds-navbar-section]', | ||||
templateUrl: './navbar-section.component.html', | templateUrl: './navbar-section.component.html', | |||
styleUrls: ['./navbar-section.component.scss'] | styleUrls: ['./navbar-section.component.scss'] | |||
}) | }) | |||
@rendersSectionForMenu(MenuID.PUBLIC, false) | @rendersSectionForMenu(MenuID.PUBLIC, false) | |||
export class NavbarSectionComponent extends MenuSectionComponent implements OnIn it { | export class NavbarSectionComponent extends MenuSectionComponent implements OnIn it { | |||
/** | /** | |||
* This section resides in the Public Navbar | * This section resides in the Public Navbar | |||
*/ | */ | |||
menuID = MenuID.PUBLIC; | menuID = MenuID.PUBLIC; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |