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.ts4
1 files changed, 3 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 82b4a345e..0c5c814c7 100644
--- a/client/src/app/+video-channels/video-channels.component.ts
+++ b/client/src/app/+video-channels/video-channels.component.ts
@@ -8,6 +8,7 @@ import { Subscription } from 'rxjs'
8import { AuthService } from '@app/core' 8import { AuthService } from '@app/core'
9import { Hotkey, HotkeysService } from 'angular2-hotkeys' 9import { 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'
11 12
12@Component({ 13@Component({
13 templateUrl: './video-channels.component.html', 14 templateUrl: './video-channels.component.html',
@@ -22,6 +23,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
22 private routeSub: Subscription 23 private routeSub: Subscription
23 24
24 constructor ( 25 constructor (
26 private i18n: I18n,
25 private route: ActivatedRoute, 27 private route: ActivatedRoute,
26 private authService: AuthService, 28 private authService: AuthService,
27 private videoChannelService: VideoChannelService, 29 private videoChannelService: VideoChannelService,
@@ -45,7 +47,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
45 this.subscribeButton.unsubscribe() : 47 this.subscribeButton.unsubscribe() :
46 this.subscribeButton.subscribe() 48 this.subscribeButton.subscribe()
47 return false 49 return false
48 }, undefined, 'Subscribe to the account') 50 }, undefined, this.i18n('Subscribe to the account'))
49 ] 51 ]
50 if (this.isUserLoggedIn()) this.hotkeysService.add(this.hotkeys) 52 if (this.isUserLoggedIn()) this.hotkeysService.add(this.hotkeys)
51 } 53 }