aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+video-channels/video-channels.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+video-channels/video-channels.component.ts')
-rw-r--r--client/src/app/+video-channels/video-channels.component.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts
index 57c55d286..ee2c86915 100644
--- a/client/src/app/+video-channels/video-channels.component.ts
+++ b/client/src/app/+video-channels/video-channels.component.ts
@@ -5,6 +5,7 @@ import { VideoChannelService } from '@app/shared/video-channel/video-channel.ser
5import { RestExtractor } from '@app/shared' 5import { RestExtractor } from '@app/shared'
6import { catchError, distinctUntilChanged, map, switchMap } from 'rxjs/operators' 6import { catchError, distinctUntilChanged, map, switchMap } from 'rxjs/operators'
7import { Subscription } from 'rxjs' 7import { Subscription } from 'rxjs'
8import { AuthService } from '@app/core'
8 9
9@Component({ 10@Component({
10 templateUrl: './video-channels.component.html', 11 templateUrl: './video-channels.component.html',
@@ -17,6 +18,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
17 18
18 constructor ( 19 constructor (
19 private route: ActivatedRoute, 20 private route: ActivatedRoute,
21 private authService: AuthService,
20 private videoChannelService: VideoChannelService, 22 private videoChannelService: VideoChannelService,
21 private restExtractor: RestExtractor 23 private restExtractor: RestExtractor
22 ) { } 24 ) { }
@@ -36,4 +38,8 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
36 ngOnDestroy () { 38 ngOnDestroy () {
37 if (this.routeSub) this.routeSub.unsubscribe() 39 if (this.routeSub) this.routeSub.unsubscribe()
38 } 40 }
41
42 isUserLoggedIn () {
43 return this.authService.isLoggedIn()
44 }
39} 45}