aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/user-subscription/subscribe-button.component.html
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-01-08 00:46:38 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-01-10 10:12:09 +0100
commitb061c8edb053d4a7a02f09d93d406f6a8c58006e (patch)
treefdc2e4fcffd1f61c51921af9a8fa1fa4fb79ce79 /client/src/app/shared/user-subscription/subscribe-button.component.html
parent41eb700fceee1085dd0e1a9ce78ecbd0e111eb6e (diff)
downloadPeerTube-b061c8edb053d4a7a02f09d93d406f6a8c58006e.tar.gz
PeerTube-b061c8edb053d4a7a02f09d93d406f6a8c58006e.tar.zst
PeerTube-b061c8edb053d4a7a02f09d93d406f6a8c58006e.zip
Add extra text to button when partially subscribed to all channels
Diffstat (limited to 'client/src/app/shared/user-subscription/subscribe-button.component.html')
-rw-r--r--client/src/app/shared/user-subscription/subscribe-button.component.html17
1 files changed, 12 insertions, 5 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 a119beff6..6ac8af3de 100644
--- a/client/src/app/shared/user-subscription/subscribe-button.component.html
+++ b/client/src/app/shared/user-subscription/subscribe-button.component.html
@@ -2,10 +2,15 @@
2 [ngClass]="{'subscribe-button': !isAllChannelsSubscribed(), 'unsubscribe-button': isAllChannelsSubscribed()}"> 2 [ngClass]="{'subscribe-button': !isAllChannelsSubscribed(), 'unsubscribe-button': isAllChannelsSubscribed()}">
3 3
4 <ng-template #userLoggedOut> 4 <ng-template #userLoggedOut>
5 <span> 5 <span [ngClass]="{ 'extra-text': subscribeStatus(true).length > 0 }">
6 <ng-container *ngIf="account; then multiple; else single"></ng-container> 6 <ng-container *ngIf="account; then multiple; else single"></ng-container>
7 <ng-template i18n #single>Subscribe</ng-template> 7 <ng-template i18n #single>Subscribe</ng-template>
8 <ng-template i18n #multiple>Subscribe to all channels</ng-template> 8 <ng-template #multiple>
9 <span i18n>Subscribe to all channels</span>
10 <span *ngIf="subscribeStatus(true).length > 0">{{subscribeStatus(true).length}}/{{subscribed.size}}
11 <ng-container i18n>channels subscribed</ng-container>
12 </span>
13 </ng-template>
9 </span> 14 </span>
10 <span *ngIf="displayFollowers && videoChannel.followersCount !== 0" class="followers-count"> 15 <span *ngIf="displayFollowers && videoChannel.followersCount !== 0" class="followers-count">
11 {{ videoChannel.followersCount | myNumberFormatter }} 16 {{ videoChannel.followersCount | myNumberFormatter }}
@@ -24,9 +29,11 @@
24 class="btn btn-sm" role="button" 29 class="btn btn-sm" role="button"
25 (click)="unsubscribe()" i18n 30 (click)="unsubscribe()" i18n
26 > 31 >
27 <ng-container *ngIf="account; then multiple; else single"></ng-container> 32 <span>
28 <ng-template i18n #single>Unsubscribe</ng-template> 33 <ng-container *ngIf="account; then multiple; else single"></ng-container>
29 <ng-template i18n #multiple>Unsubscribe from all channels</ng-template> 34 <ng-template i18n #single>Unsubscribe</ng-template>
35 <ng-template i18n #multiple>Unsubscribe from all channels</ng-template>
36 </span>
30 </button> 37 </button>
31 </ng-template> 38 </ng-template>
32 39