mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import { Component, Injector } from '@angular/core';
|
|
import { slideMobileNav } from '../shared/animations/slide';
|
|
import { MenuComponent } from '../shared/menu/menu.component';
|
|
import { MenuService } from '../shared/menu/menu.service';
|
|
import { HostWindowService } from '../shared/host-window.service';
|
|
import { BrowseService } from '../core/browse/browse.service';
|
|
import { ActivatedRoute } from '@angular/router';
|
|
import { AuthorizationDataService } from '../core/data/feature-authorization/authorization-data.service';
|
|
import { MenuID } from '../shared/menu/menu-id.model';
|
|
|
|
/**
|
|
* Component representing the public navbar
|
|
*/
|
|
@Component({
|
|
selector: 'ds-navbar',
|
|
styleUrls: ['./navbar.component.scss'],
|
|
templateUrl: './navbar.component.html',
|
|
animations: [slideMobileNav]
|
|
})
|
|
export class NavbarComponent extends MenuComponent {
|
|
/**
|
|
* The menu ID of the Navbar is PUBLIC
|
|
* @type {MenuID.PUBLIC}
|
|
*/
|
|
menuID = MenuID.PUBLIC;
|
|
|
|
constructor(protected menuService: MenuService,
|
|
protected injector: Injector,
|
|
public windowService: HostWindowService,
|
|
public browseService: BrowseService,
|
|
public authorizationService: AuthorizationDataService,
|
|
public route: ActivatedRoute
|
|
) {
|
|
super(menuService, injector, authorizationService, route);
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
super.ngOnInit();
|
|
}
|
|
}
|