diff options
Diffstat (limited to 'client/src/app/+video-channels/video-channels.component.ts')
-rw-r--r-- | client/src/app/+video-channels/video-channels.component.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts index 5ca9581a8..0889ca854 100644 --- a/client/src/app/+video-channels/video-channels.component.ts +++ b/client/src/app/+video-channels/video-channels.component.ts | |||
@@ -9,6 +9,7 @@ import { AuthService, Notifier } 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 | import { I18n } from '@ngx-translate/i18n-polyfill' |
12 | import { ListOverflowItem } from '@app/shared/misc/list-overflow.component' | ||
12 | 13 | ||
13 | @Component({ | 14 | @Component({ |
14 | templateUrl: './video-channels.component.html', | 15 | templateUrl: './video-channels.component.html', |
@@ -19,6 +20,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { | |||
19 | 20 | ||
20 | videoChannel: VideoChannel | 21 | videoChannel: VideoChannel |
21 | hotkeys: Hotkey[] | 22 | hotkeys: Hotkey[] |
23 | links: ListOverflowItem[] = [] | ||
22 | isChannelManageable = false | 24 | isChannelManageable = false |
23 | 25 | ||
24 | private routeSub: Subscription | 26 | private routeSub: Subscription |
@@ -62,6 +64,12 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { | |||
62 | }, undefined, this.i18n('Subscribe to the account')) | 64 | }, undefined, this.i18n('Subscribe to the account')) |
63 | ] | 65 | ] |
64 | if (this.isUserLoggedIn()) this.hotkeysService.add(this.hotkeys) | 66 | if (this.isUserLoggedIn()) this.hotkeysService.add(this.hotkeys) |
67 | |||
68 | this.links = [ | ||
69 | { label: this.i18n('Videos'), routerLink: 'videos' }, | ||
70 | { label: this.i18n('Video playlists'), routerLink: 'video-playlists' }, | ||
71 | { label: this.i18n('About'), routerLink: 'about' } | ||
72 | ] | ||
65 | } | 73 | } |
66 | 74 | ||
67 | ngOnDestroy () { | 75 | ngOnDestroy () { |