Skip to content
Snippets Groups Projects
Commit 60e68806 authored by Hagen Dreßler's avatar Hagen Dreßler
Browse files

Edit logic of component comment-list

parent ce1553d8
1 merge request!77Resolve "See reed comments (participant)"
Pipeline #13311 passed with stage
in 35 seconds
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
{{comment.body}} {{comment.body}}
<div class="body-buttons" *ngIf="userRole === userRoleTemp"> <div class="body-buttons">
<button *ngIf="!comment.read" mat-fab color="warn" matTooltip="Is not read" (click)="setRead(comment)"> <button *ngIf="!comment.read" mat-fab color="warn" matTooltip="Is not read" (click)="userRole === userRoleTemp && setRead(comment)">
<mat-icon>clear</mat-icon> <mat-icon>clear</mat-icon>
</button> </button>
<button *ngIf="comment.read" mat-fab color="primary" matTooltip="Is read" (click)="setRead(comment)"> <button *ngIf="comment.read" mat-fab color="primary" matTooltip="Is read" (click)="userRole === userRoleTemp && setRead(comment)">
<mat-icon>check</mat-icon> <mat-icon>check</mat-icon>
</button> </button>
<button class="trash-icon" mat-fab color="primary" matTooltip="Delete" (click)="delete(comment)"> <button *ngIf="userRole === userRoleTemp" class="trash-icon" mat-fab color="primary" matTooltip="Delete" (click)="delete(comment)">
<mat-icon>delete</mat-icon> <mat-icon>delete</mat-icon>
</button> </button>
</div> </div>
......
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