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.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts
index 00b9938d9..f3cd5dea5 100644
--- a/client/src/app/+video-channels/video-channels.component.ts
+++ b/client/src/app/+video-channels/video-channels.component.ts
@@ -10,6 +10,7 @@ import { Hotkey, HotkeysService } from 'angular2-hotkeys'
10import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component' 10import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component'
11import { I18n } from '@ngx-translate/i18n-polyfill' 11import { I18n } from '@ngx-translate/i18n-polyfill'
12import { ListOverflowItem } from '@app/shared/misc/list-overflow.component' 12import { ListOverflowItem } from '@app/shared/misc/list-overflow.component'
13import { ScreenService } from '@app/shared/misc/screen.service'
13 14
14@Component({ 15@Component({
15 templateUrl: './video-channels.component.html', 16 templateUrl: './video-channels.component.html',
@@ -32,7 +33,8 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
32 private authService: AuthService, 33 private authService: AuthService,
33 private videoChannelService: VideoChannelService, 34 private videoChannelService: VideoChannelService,
34 private restExtractor: RestExtractor, 35 private restExtractor: RestExtractor,
35 private hotkeysService: HotkeysService 36 private hotkeysService: HotkeysService,
37 private screenService: ScreenService
36 ) { } 38 ) { }
37 39
38 ngOnInit () { 40 ngOnInit () {
@@ -79,6 +81,10 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
79 if (this.isUserLoggedIn()) this.hotkeysService.remove(this.hotkeys) 81 if (this.isUserLoggedIn()) this.hotkeysService.remove(this.hotkeys)
80 } 82 }
81 83
84 get isInSmallView () {
85 return this.screenService.isInSmallView()
86 }
87
82 isUserLoggedIn () { 88 isUserLoggedIn () {
83 return this.authService.isLoggedIn() 89 return this.authService.isLoggedIn()
84 } 90 }