Skip to content
Snippets Groups Projects

Add badge as comment counter

Merged Tom Käsler requested to merge comment-counter into master
Viewing commit 995bd211
Show latest version
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -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 }}">