ActivityPub-federated video streaming platform using P2P directly in your web browser
Display total of number of video comments via pagination
Rigel Kentae689853d894
diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.html b/client/src/app/videos/+video-watch/comment/video-comments.component.htmlindex e25efc3ee0..2bf52ab86a 100644--- a/client/src/app/videos/+video-watch/comment/video-comments.component.html+++ b/client/src/app/videos/+video-watch/comment/video-comments.component.html@@ -1,10 +1,10 @@<div><div class="title-block"><div class="title-page title-page-single">- <ng-container *ngIf="comments.length > 0; then hasComments; else noComments"></ng-container>+ <ng-container *ngIf="componentPagination.totalItems > 0; then hasComments; else noComments"></ng-container><ng-template #hasComments>- <ng-container i18n *ngIf="comments.length === 1; else manyComments">1 Comment</ng-container>- <ng-template i18n #manyComments>{{ comments.length }} Comments</ng-template>+ <ng-container i18n *ngIf="componentPagination.totalItems === 1; else manyComments">1 Comment</ng-container>+ <ng-template i18n #manyComments>{{ componentPagination.totalItems }} Comments</ng-template></ng-template><ng-template i18n #noComments>Comments</ng-template></div>