diff --git a/src/app/components/shared/comment/comment.component.html b/src/app/components/shared/comment/comment.component.html index 3beb681859663641cbdda66627873a5e8f1acd95..98dff1aeefbed675ffe9001795f6853c895876b7 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>