diff --git a/src/app/_modules/layout/footer/footer.component.html b/src/app/_modules/layout/footer/footer.component.html index b5501a9..af71b53 100644 --- a/src/app/_modules/layout/footer/footer.component.html +++ b/src/app/_modules/layout/footer/footer.component.html @@ -47,7 +47,7 @@ Новости
diff --git a/src/app/_modules/layout/footer/footer.component.ts b/src/app/_modules/layout/footer/footer.component.ts index 44c7130..32ee922 100644 --- a/src/app/_modules/layout/footer/footer.component.ts +++ b/src/app/_modules/layout/footer/footer.component.ts @@ -1,4 +1,6 @@ import {Component} from '@angular/core'; +import {AuthenticationService} from "@app/_services"; +import {Subscription} from "rxjs"; @Component({ selector: 'footer', @@ -6,10 +8,19 @@ import {Component} from '@angular/core'; styleUrls: ['footer.component.scss'] }) export class FooterComponent { - constructor() { + subscription: Subscription; + public user: any; + constructor(public authenticationService: AuthenticationService) { + this.subscription = this.authenticationService.user.subscribe(user => { + this.user = user; + }); } ngOnInit() { } + login() { + this.authenticationService.popup('login'); + } + } diff --git a/src/app/_modules/layout/grid/grid.component.html b/src/app/_modules/layout/grid/grid.component.html index a0c73e3..a4fdef8 100644 --- a/src/app/_modules/layout/grid/grid.component.html +++ b/src/app/_modules/layout/grid/grid.component.html @@ -2,9 +2,7 @@