From 77d873c56d112b7b1de4e703b08f7d8547dfb9fd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 12 Jul 2021 10:03:46 +0200 Subject: Fix subscribe hotkey --- .../app/shared/shared-user-subscription/subscribe-button.component.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src/app/shared/shared-user-subscription') diff --git a/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts b/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts index b918fda06..2261e07dd 100644 --- a/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts +++ b/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts @@ -164,6 +164,10 @@ export class SubscribeButtonComponent implements OnInit, OnChanges { return accumulator } + isSubscribedToAll () { + return Array.from(this.subscribed.values()).every(v => v === true) + } + private getChannelHandler (videoChannel: VideoChannel) { return videoChannel.name + '@' + videoChannel.host } -- cgit v1.2.3