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.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts
index cae442ee7..ea8bda1cf 100644
--- a/client/src/app/+video-channels/video-channels.component.ts
+++ b/client/src/app/+video-channels/video-channels.component.ts
@@ -6,7 +6,6 @@ import { ActivatedRoute } from '@angular/router'
6import { AuthService, Notifier, RestExtractor, ScreenService } from '@app/core' 6import { AuthService, Notifier, RestExtractor, ScreenService } from '@app/core'
7import { ListOverflowItem, VideoChannel, VideoChannelService } from '@app/shared/shared-main' 7import { ListOverflowItem, VideoChannel, VideoChannelService } from '@app/shared/shared-main'
8import { SubscribeButtonComponent } from '@app/shared/shared-user-subscription' 8import { SubscribeButtonComponent } from '@app/shared/shared-user-subscription'
9import { I18n } from '@ngx-translate/i18n-polyfill'
10 9
11@Component({ 10@Component({
12 templateUrl: './video-channels.component.html', 11 templateUrl: './video-channels.component.html',
@@ -23,7 +22,6 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
23 private routeSub: Subscription 22 private routeSub: Subscription
24 23
25 constructor ( 24 constructor (
26 private i18n: I18n,
27 private route: ActivatedRoute, 25 private route: ActivatedRoute,
28 private notifier: Notifier, 26 private notifier: Notifier,
29 private authService: AuthService, 27 private authService: AuthService,
@@ -59,14 +57,14 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
59 this.subscribeButton.unsubscribe() : 57 this.subscribeButton.unsubscribe() :
60 this.subscribeButton.subscribe() 58 this.subscribeButton.subscribe()
61 return false 59 return false
62 }, undefined, this.i18n('Subscribe to the account')) 60 }, undefined, $localize`Subscribe to the account`)
63 ] 61 ]
64 if (this.isUserLoggedIn()) this.hotkeysService.add(this.hotkeys) 62 if (this.isUserLoggedIn()) this.hotkeysService.add(this.hotkeys)
65 63
66 this.links = [ 64 this.links = [
67 { label: this.i18n('VIDEOS'), routerLink: 'videos' }, 65 { label: $localize`VIDEOS`, routerLink: 'videos' },
68 { label: this.i18n('VIDEO PLAYLISTS'), routerLink: 'video-playlists' }, 66 { label: $localize`VIDEO PLAYLISTS`, routerLink: 'video-playlists' },
69 { label: this.i18n('ABOUT'), routerLink: 'about' } 67 { label: $localize`ABOUT`, routerLink: 'about' }
70 ] 68 ]
71 } 69 }
72 70
@@ -91,6 +89,6 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
91 } 89 }
92 90
93 activateCopiedMessage () { 91 activateCopiedMessage () {
94 this.notifier.success(this.i18n('Username copied')) 92 this.notifier.success($localize`Username copied`)
95 } 93 }
96} 94}