diff options
| author | Nevena Bojovic <nenabojov@gmail.com> | 2022-03-29 19:17:11 +0200 |
|---|---|---|
| committer | Nevena Bojovic <nenabojov@gmail.com> | 2022-03-29 19:17:11 +0200 |
| commit | e8790a5b30170a99fc6ef61e24614456543febd7 (patch) | |
| tree | e5a5768a8489764e5e3a9f1f91761ad4c6eb9bcc /frontend/src/app/app.component.ts | |
| parent | 82030306a115d06a33bed48a5a0e15a053f0ae7e (diff) | |
| parent | f3d5f6fa046912c996e2581d9082087ccf7919d6 (diff) | |
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into dev
Diffstat (limited to 'frontend/src/app/app.component.ts')
| -rw-r--r-- | frontend/src/app/app.component.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/frontend/src/app/app.component.ts b/frontend/src/app/app.component.ts index f5ae5786..8c6f8452 100644 --- a/frontend/src/app/app.component.ts +++ b/frontend/src/app/app.component.ts @@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core'; import { Title } from '@angular/platform-browser'; import { Router, NavigationEnd, ActivatedRoute } from '@angular/router'; import { filter, map } from 'rxjs'; +import { AuthService } from './_services/auth.service'; @Component({ selector: 'app-root', @@ -10,7 +11,7 @@ import { filter, map } from 'rxjs'; }) export class AppComponent implements OnInit { - constructor(private router: Router, private titleService: Title) { } + constructor(private router: Router, private titleService: Title,private authService:AuthService) { } ngOnInit() { this.router.events @@ -33,5 +34,9 @@ export class AppComponent implements OnInit { this.titleService.setTitle(`${title} - Igrannonica`); } }); + if(!this.authService.isAuthenticated()) + { + this.authService.addGuestToken(); + } } } |
