|
|
|
@ -38,7 +38,7 @@ import { FriendPageComponent } from '../friend-page/friend-page.component';
|
|
|
|
|
templateUrl: './navbar.component.html',
|
|
|
|
|
})
|
|
|
|
|
export class NavbarComponent implements OnInit {
|
|
|
|
|
isTimeline: boolean = false;
|
|
|
|
|
showTimeline: boolean = false;
|
|
|
|
|
|
|
|
|
|
isSearchOpen: boolean = false;
|
|
|
|
|
isNavbarOpen: boolean = false;
|
|
|
|
@ -75,10 +75,10 @@ export class NavbarComponent implements OnInit {
|
|
|
|
|
this.pins = pins;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.isTimeline = this.router.url === '/timeline';
|
|
|
|
|
this.showTimeline = this.router.url !== '/timeline' && this.router.url !== '/';
|
|
|
|
|
this.router.events.subscribe((event) => {
|
|
|
|
|
if (event instanceof NavigationEnd) {
|
|
|
|
|
this.isTimeline = event.url === '/timeline';
|
|
|
|
|
this.showTimeline = event.url !== '/timeline' && this.router.url !== '/';
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|