|
|
@ -12,6 +12,7 @@ import { AuthService } from 'src/app/services/auth-service'; |
|
|
export class SeasonsComponent |
|
|
export class SeasonsComponent |
|
|
{ |
|
|
{ |
|
|
seasons: Season[]; |
|
|
seasons: Season[]; |
|
|
|
|
|
isLoggedIn: boolean = false; |
|
|
|
|
|
|
|
|
constructor(private apiService: ApiService, |
|
|
constructor(private apiService: ApiService, |
|
|
private authService: AuthService) |
|
|
private authService: AuthService) |
|
|
@ -23,10 +24,6 @@ export class SeasonsComponent |
|
|
this.apiService.getSeasons().subscribe(data => { |
|
|
this.apiService.getSeasons().subscribe(data => { |
|
|
this.seasons = (data as any).seasons; |
|
|
this.seasons = (data as any).seasons; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
this.isLoggedIn = this.authService.isLoggedIn(); |
|
|
|
|
|
|
|
|
isLoggedIn() |
|
|
|
|
|
{ |
|
|
|
|
|
return this.authService.isLoggedIn(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|