]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Display "No subscribers" in my-library instead of "0 subscribers"
authorPoslovitch <poslovitch@bentobox.world>
Fri, 27 May 2022 12:06:58 +0000 (12:06 +0000)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 30 May 2022 08:06:03 +0000 (10:06 +0200)
Was suggested in https://github.com/Chocobozzz/PeerTube/pull/4484

client/src/app/+my-library/+my-video-channels/my-video-channels.component.html

index 89327b065d98ae72271d342152dd2c10d8ec3c7b..e7003f1e4b75d25f24fba50c233ce1534f7e26a4 100644 (file)
@@ -31,7 +31,7 @@
         i18n class="video-channel-followers"
         [routerLink]="[ '/my-library', 'followers' ]" [queryParams]="{ search: 'channel:' + videoChannel.name }"
       >
-        {videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}
+        {videoChannel.followersCount, plural, =0 {No subscribers} =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}
       </a>
 
       <div i18n class="video-channel-videos">{videoChannel.videosCount, plural, =0 {No videos} =1 {1 video} other {{{ videoChannel.videosCount }} videos}}</div>