diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-12 10:03:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-12 10:04:48 +0200 |
commit | 77d873c56d112b7b1de4e703b08f7d8547dfb9fd (patch) | |
tree | ec62465a0696ffeabdefe5056d30b60b4de47334 /client/src/app/+videos | |
parent | 6419509bde8d134da044b49fc0eaecc7f38a1c71 (diff) | |
download | PeerTube-77d873c56d112b7b1de4e703b08f7d8547dfb9fd.tar.gz PeerTube-77d873c56d112b7b1de4e703b08f7d8547dfb9fd.tar.zst PeerTube-77d873c56d112b7b1de4e703b08f7d8547dfb9fd.zip |
Fix subscribe hotkey
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r-- | client/src/app/+videos/+video-watch/video-watch.component.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts index 85b882225..d078844c3 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts | |||
@@ -696,7 +696,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
696 | if (this.isUserLoggedIn()) { | 696 | if (this.isUserLoggedIn()) { |
697 | this.hotkeys = this.hotkeys.concat([ | 697 | this.hotkeys = this.hotkeys.concat([ |
698 | new Hotkey('shift+s', () => { | 698 | new Hotkey('shift+s', () => { |
699 | this.subscribeButton.subscribed ? this.subscribeButton.unsubscribe() : this.subscribeButton.subscribe() | 699 | this.subscribeButton.isSubscribedToAll() |
700 | ? this.subscribeButton.unsubscribe() | ||
701 | : this.subscribeButton.subscribe() | ||
702 | |||
700 | return false | 703 | return false |
701 | }, undefined, $localize`Subscribe to the account`) | 704 | }, undefined, $localize`Subscribe to the account`) |
702 | ]) | 705 | ]) |