diff --git a/src/app/components/shared/comment-list/comment-list.component.html b/src/app/components/shared/comment-list/comment-list.component.html index 88fda70b298acf4f8ef128e54d8c2d9392c76277..54b135e077edafa6ab2f93ca5ec2b9105ec8f6b7 100644 --- a/src/app/components/shared/comment-list/comment-list.component.html +++ b/src/app/components/shared/comment-list/comment-list.component.html @@ -12,7 +12,10 @@ <span class="fill-remaining-space"></span> <div class="button-bar" fxLayoutAlign="center center"> - <button mat-mini-fab color="primary" class="comment-counter" *ngIf="comments && comments.length > 0">{{comments.length}}</button> + <div *ngIf="comments && comments.length > 0"> + <button mat-mini-fab color="primary" class="comment-counter" *ngIf="(!filteredComments) || (comments.length === filteredComments.length)">{{comments.length}}</button> + <button mat-mini-fab color="secondary" class="comment-counter" *ngIf="(filteredComments) && (comments.length > filteredComments.length)">{{filteredComments.length}}</button> + </div> <button mat-icon-button class="searchBarButton" *ngIf="!searchBox.value && comments.length > 0" [matMenuTriggerFor]="filterMenu" matTooltip="{{ 'comment-list.filter-comments' | translate }}">