From 77d873c56d112b7b1de4e703b08f7d8547dfb9fd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 12 Jul 2021 10:03:46 +0200 Subject: Fix subscribe hotkey --- client/src/app/+videos/+video-watch/video-watch.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client/src/app/+videos/+video-watch') 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 { if (this.isUserLoggedIn()) { this.hotkeys = this.hotkeys.concat([ new Hotkey('shift+s', () => { - this.subscribeButton.subscribed ? this.subscribeButton.unsubscribe() : this.subscribeButton.subscribe() + this.subscribeButton.isSubscribedToAll() + ? this.subscribeButton.unsubscribe() + : this.subscribeButton.subscribe() + return false }, undefined, $localize`Subscribe to the account`) ]) -- cgit v1.2.3