From: Rigel Kent Date: Fri, 10 Jan 2020 10:42:53 +0000 (+0100) Subject: Fix subscribe-button for logged-out users X-Git-Tag: v2.1.0-rc.1~44 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2d0d88a0cbd8c1823fe476abb80903cce6a61fd3;p=oweals%2Fpeertube.git Fix subscribe-button for logged-out users --- diff --git a/client/src/app/shared/user-subscription/subscribe-button.component.html b/client/src/app/shared/user-subscription/subscribe-button.component.html index 275349b7f..1c2288ebb 100644 --- a/client/src/app/shared/user-subscription/subscribe-button.component.html +++ b/client/src/app/shared/user-subscription/subscribe-button.component.html @@ -12,8 +12,8 @@ - - {{ videoChannel.followersCount | myNumberFormatter }} + + {{ videoChannels[0].followersCount | myNumberFormatter }} @@ -50,7 +50,7 @@ diff --git a/client/src/app/shared/user-subscription/subscribe-button.component.ts b/client/src/app/shared/user-subscription/subscribe-button.component.ts index 14a6bfe66..1ebfdc82f 100644 --- a/client/src/app/shared/user-subscription/subscribe-button.component.ts +++ b/client/src/app/shared/user-subscription/subscribe-button.component.ts @@ -146,7 +146,7 @@ export class SubscribeButtonComponent implements OnInit { } isBigButton () { - return this.videoChannels.length > 1 && this.isAtLeastOneChannelSubscribed() + return this.isUserLoggedIn() && this.videoChannels.length > 1 && this.isAtLeastOneChannelSubscribed() } gotoLogin () {