From 0214748b2d13cf4a00c32d952ca6566d713493eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Tue, 11 Jun 2019 14:48:40 +0200 Subject: [PATCH] Change counter to 'mat-chip' --- .../shared/comment-list/comment-list.component.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 65fb047c7..b188318c4 100644 --- a/src/app/components/shared/comment-list/comment-list.component.html +++ b/src/app/components/shared/comment-list/comment-list.component.html @@ -13,8 +13,10 @@ <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> + <mat-chip-list> + <mat-chip class="comment-counter" *ngIf="(!filteredComments) || (comments.length === filteredComments.length)">{{comments.length}}</mat-chip> + <mat-chip class="comment-counter" *ngIf="(filteredComments) && (comments.length > filteredComments.length)">{{filteredComments.length}}</mat-chip> + </mat-chip-list> </div> <button mat-icon-button class="searchBarButton" *ngIf="!searchBox.value && comments && comments.length > 0" -- GitLab