|
|
|
@ -2,6 +2,7 @@ import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
|
|
|
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
|
|
|
|
|
import { Observable } from 'rxjs';
|
|
|
|
|
import { map } from 'rxjs/operators';
|
|
|
|
|
import { INavBar } from '../interfaces/ICommon';
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-my-nav',
|
|
|
|
@ -16,12 +17,20 @@ export class MyNavComponent {
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@Input() public showNav: boolean;
|
|
|
|
|
@Input() public applicationName: string;
|
|
|
|
|
@Input() public username: string;
|
|
|
|
|
@Output() public logoutClick = new EventEmitter();
|
|
|
|
|
|
|
|
|
|
constructor(private breakpointObserver: BreakpointObserver) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public navItems: INavBar[] = [
|
|
|
|
|
{name: "NavigationBar.Discover", icon: "find_replace", link: "/discover"},
|
|
|
|
|
{name: "NavigationBar.Search", icon: "search", link: "/search"},
|
|
|
|
|
{name: "NavigationBar.Requests", icon: "list", link: "/requests"},
|
|
|
|
|
{name: "NavigationBar.Settings", icon: "settings", link: "/Settings/About"},
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
public logOut() {
|
|
|
|
|
this.logoutClick.emit();
|
|
|
|
|
}
|
|
|
|
|