Fix subscribe-button for logged-out users
This commit is contained in:
parent
62fca05de4
commit
2d0d88a0cb
2 changed files with 4 additions and 4 deletions
|
@ -12,8 +12,8 @@
|
||||||
</span>
|
</span>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="displayFollowers && videoChannel.followersCount !== 0" class="followers-count">
|
<span *ngIf="!isBigButton() && displayFollowers && videoChannels.length > 1 && videoChannels[0].followersCount !== 0" class="followers-count">
|
||||||
{{ videoChannel.followersCount | myNumberFormatter }}
|
{{ videoChannels[0].followersCount | myNumberFormatter }}
|
||||||
</span>
|
</span>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
<h6 class="dropdown-header" i18n>Using an ActivityPub account</h6>
|
<h6 class="dropdown-header" i18n>Using an ActivityPub account</h6>
|
||||||
|
|
||||||
<button class="dropdown-item" (click)="subscribe()">
|
<button class="dropdown-item" (click)="subscribe()">
|
||||||
<span *ngIf="!isUserLoggedIn()" i18n>Subscribe with an account on {{ videoChannel.host }}</span>
|
<span *ngIf="!isUserLoggedIn()" i18n>Subscribe with an account on this instance</span>
|
||||||
<span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span>
|
<span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
|
@ -146,7 +146,7 @@ export class SubscribeButtonComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
isBigButton () {
|
isBigButton () {
|
||||||
return this.videoChannels.length > 1 && this.isAtLeastOneChannelSubscribed()
|
return this.isUserLoggedIn() && this.videoChannels.length > 1 && this.isAtLeastOneChannelSubscribed()
|
||||||
}
|
}
|
||||||
|
|
||||||
gotoLogin () {
|
gotoLogin () {
|
||||||
|
|
Loading…
Reference in a new issue