Skip to content
Snippets Groups Projects
Commit 995bd211 authored by Tom Käsler's avatar Tom Käsler
Browse files

Add second comment counter for when filter is active

parent 4d84d3d5
No related merge requests found
Pipeline #27026 passed with warnings with stages
in 6 minutes and 26 seconds
......@@ -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 }}">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment