aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-01-10 11:42:53 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-01-10 11:42:53 +0100
commit2d0d88a0cbd8c1823fe476abb80903cce6a61fd3 (patch)
treeeb156a7e023d9b189a28f6ecd322e3019a48f698
parent62fca05de45848f3241c1b078df51d79692ebfee (diff)
downloadPeerTube-2d0d88a0cbd8c1823fe476abb80903cce6a61fd3.tar.gz
PeerTube-2d0d88a0cbd8c1823fe476abb80903cce6a61fd3.tar.zst
PeerTube-2d0d88a0cbd8c1823fe476abb80903cce6a61fd3.zip
Fix subscribe-button for logged-out users
-rw-r--r--client/src/app/shared/user-subscription/subscribe-button.component.html6
-rw-r--r--client/src/app/shared/user-subscription/subscribe-button.component.ts2
2 files changed, 4 insertions, 4 deletions
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 @@
12 </span> 12 </span>
13 </ng-template> 13 </ng-template>
14 </span> 14 </span>
15 <span *ngIf="displayFollowers && videoChannel.followersCount !== 0" class="followers-count"> 15 <span *ngIf="!isBigButton() && displayFollowers && videoChannels.length > 1 && videoChannels[0].followersCount !== 0" class="followers-count">
16 {{ videoChannel.followersCount | myNumberFormatter }} 16 {{ videoChannels[0].followersCount | myNumberFormatter }}
17 </span> 17 </span>
18 </ng-template> 18 </ng-template>
19 19
@@ -50,7 +50,7 @@
50 <h6 class="dropdown-header" i18n>Using an ActivityPub account</h6> 50 <h6 class="dropdown-header" i18n>Using an ActivityPub account</h6>
51 51
52 <button class="dropdown-item" (click)="subscribe()"> 52 <button class="dropdown-item" (click)="subscribe()">
53 <span *ngIf="!isUserLoggedIn()" i18n>Subscribe with an account on {{ videoChannel.host }}</span> 53 <span *ngIf="!isUserLoggedIn()" i18n>Subscribe with an account on this instance</span>
54 <span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span> 54 <span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span>
55 </button> 55 </button>
56 56
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 {
146 } 146 }
147 147
148 isBigButton () { 148 isBigButton () {
149 return this.videoChannels.length > 1 && this.isAtLeastOneChannelSubscribed() 149 return this.isUserLoggedIn() && this.videoChannels.length > 1 && this.isAtLeastOneChannelSubscribed()
150 } 150 }
151 151
152 gotoLogin () { 152 gotoLogin () {