Commit dc7f561b authored by Tom Käsler's avatar Tom Käsler

Add comment counter

Show number of comments
When comment list is filtered, show number of filtered comments
parent 3ffa2234
Pipeline #27027 passed with stages
in 7 minutes and 14 seconds
......@@ -12,6 +12,11 @@
<span class="fill-remaining-space"></span>
<div class="button-bar" fxLayoutAlign="center center">
<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 && comments.length > 0"
[matMenuTriggerFor]="filterMenu" matTooltip="{{ 'comment-list.filter-comments' | translate }}">
<mat-icon class="searchBarIcon">filter_list</mat-icon>
......
......@@ -79,3 +79,7 @@ h4 {
.unread-icon {
color: var(--yellow);
}
.comment-counter {
font-size: 18pt;
}
Markdown is supported
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