Fix: Error in navbar, didn't do anything, but showed up in the errors.
This commit is contained in:
parent
c341e58d63
commit
72e8801472
@ -1,12 +1,4 @@
|
|||||||
<mat-toolbar class="fixed-to-top">
|
<mat-toolbar class="fixed-to-top">
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
aria-label="Toggle sidenav"
|
|
||||||
mat-icon-button
|
|
||||||
(click)="drawer.toggle()"
|
|
||||||
*ngIf="(isHandset | async)!.matches">
|
|
||||||
<mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
|
|
||||||
</button>
|
|
||||||
<span><a routerLink="/">HnG / TGB</a></span>
|
<span><a routerLink="/">HnG / TGB</a></span>
|
||||||
<mat-menu #voucherMenu="matMenu">
|
<mat-menu #voucherMenu="matMenu">
|
||||||
<a mat-menu-item routerLink="/Journal">Journal</a>
|
<a mat-menu-item routerLink="/Journal">Journal</a>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
import {Component, OnInit} from '@angular/core';
|
import {Component, OnInit} from '@angular/core';
|
||||||
import {BreakpointObserver, Breakpoints, BreakpointState} from '@angular/cdk/layout';
|
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
import {AuthService} from '../../auth/auth.service';
|
import {AuthService} from '../../auth/auth.service';
|
||||||
import {Subject} from 'rxjs/internal/Subject';
|
import {Subject} from 'rxjs/internal/Subject';
|
||||||
|
|
||||||
@ -10,10 +8,9 @@ import {Subject} from 'rxjs/internal/Subject';
|
|||||||
styleUrls: ['./nav-bar.component.css']
|
styleUrls: ['./nav-bar.component.css']
|
||||||
})
|
})
|
||||||
export class NavBarComponent implements OnInit {
|
export class NavBarComponent implements OnInit {
|
||||||
isHandset: Observable<BreakpointState> = this.breakpointObserver.observe(Breakpoints.Handset);
|
|
||||||
public nameObject = new Subject<string>();
|
public nameObject = new Subject<string>();
|
||||||
|
|
||||||
constructor(private breakpointObserver: BreakpointObserver, private auth: AuthService) {
|
constructor(private auth: AuthService) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
Loading…
Reference in New Issue
Block a user