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, 4 insertions, 4 deletions
diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts index 6479644f1..272fc41d9 100644 --- a/client/src/app/+video-channels/video-channels.component.ts +++ b/client/src/app/+video-channels/video-channels.component.ts | |||
@@ -44,7 +44,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { | |||
44 | ngOnInit () { | 44 | ngOnInit () { |
45 | this.routeSub = this.route.params | 45 | this.routeSub = this.route.params |
46 | .pipe( | 46 | .pipe( |
47 | map(params => params[ 'videoChannelName' ]), | 47 | map(params => params['videoChannelName']), |
48 | distinctUntilChanged(), | 48 | distinctUntilChanged(), |
49 | switchMap(videoChannelName => this.videoChannelService.getVideoChannel(videoChannelName)), | 49 | switchMap(videoChannelName => this.videoChannelService.getVideoChannel(videoChannelName)), |
50 | catchError(err => this.restExtractor.redirectTo404IfNotFound(err, 'other', [ | 50 | catchError(err => this.restExtractor.redirectTo404IfNotFound(err, 'other', [ |
@@ -64,9 +64,9 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { | |||
64 | 64 | ||
65 | this.hotkeys = [ | 65 | this.hotkeys = [ |
66 | new Hotkey('S', (event: KeyboardEvent): boolean => { | 66 | new Hotkey('S', (event: KeyboardEvent): boolean => { |
67 | this.subscribeButton.subscribed ? | 67 | if (this.subscribeButton.subscribed) this.subscribeButton.unsubscribe() |
68 | this.subscribeButton.unsubscribe() : | 68 | else this.subscribeButton.subscribe() |
69 | this.subscribeButton.subscribe() | 69 | |
70 | return false | 70 | return false |
71 | }, undefined, $localize`Subscribe to the account`) | 71 | }, undefined, $localize`Subscribe to the account`) |
72 | ] | 72 | ] |