diff options
Diffstat (limited to 'client/src/app/+video-channels')
-rw-r--r-- | client/src/app/+video-channels/video-channels.component.ts | 4 |
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' | |||
8 | import { AuthService } from '@app/core' | 8 | import { AuthService } from '@app/core' |
9 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' | 9 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' |
10 | import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component' | 10 | import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component' |
11 | import { 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 | } |