diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-03 10:11:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-03 10:11:26 +0200 |
commit | e33f888b86734f7e050a5e3d6f73f852b6de955a (patch) | |
tree | ea722659930951a55fbb209f5a5e33ae7e4d1918 /client/src/app/+video-channels | |
parent | 60709df53602def422e8c32509c27c65b52cb1bd (diff) | |
download | PeerTube-e33f888b86734f7e050a5e3d6f73f852b6de955a.tar.gz PeerTube-e33f888b86734f7e050a5e3d6f73f852b6de955a.tar.zst PeerTube-e33f888b86734f7e050a5e3d6f73f852b6de955a.zip |
Fix hotkey translations
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 | } |