From ad1a99b6d00c0af653e5c57dbac9ec0da14ada59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Sat, 1 Jun 2019 14:56:04 +0200 Subject: [PATCH] Remove read-icon in student-view if not read --- src/app/components/shared/comment/comment.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/shared/comment/comment.component.html b/src/app/components/shared/comment/comment.component.html index 3beb68185..98dff1aee 100644 --- a/src/app/components/shared/comment/comment.component.html +++ b/src/app/components/shared/comment/comment.component.html @@ -18,7 +18,7 @@ (click)="setFavorite(comment)"> <mat-icon [ngClass]="{true: 'favorite-icon', false: 'not-marked'}[comment.favorite]">favorite_border</mat-icon> </button> - <button mat-icon-button [disabled]="isStudent" (click)="setRead(comment)"> + <button mat-icon-button *ngIf="comment.read || !isStudent" [disabled]="isStudent" (click)="setRead(comment)"> <mat-icon class="icon" [ngClass]="{'read-icon': comment.read, 'not-marked' : !comment.read}">visibility </mat-icon> </button> -- GitLab