Skip to content
Snippets Groups Projects
Commit 1b36d0ee authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Change order of comment flags

parent 9ef1b113
Branches
Tags
1 merge request!377Resolve "Give 'correct' icon button a second state 'incorrect'"
Pipeline #30098 passed with stages
in 7 minutes and 59 seconds
...@@ -11,11 +11,6 @@ ...@@ -11,11 +11,6 @@
</ng-template> </ng-template>
</div> </div>
<span class="fill-remaining-space"></span> <span class="fill-remaining-space"></span>
<button mat-icon-button *ngIf="comment.read" [disabled]="true" (click)="setRead(comment)">
<mat-icon [ngClass]="{'read-icon': comment.read, 'not-marked' : !comment.read}"
matTooltip="{{ 'comment-page.mark-read' | translate }}">speaker_notes
</mat-icon>
</button>
<button mat-icon-button *ngIf="!isStudent || comment.correct === 2" [disabled]="isStudent" <button mat-icon-button *ngIf="!isStudent || comment.correct === 2" [disabled]="isStudent"
(click)="markCorrect(comment, 2)"> (click)="markCorrect(comment, 2)">
<mat-icon [ngClass]="{'wrong-icon' : comment.correct === 2, <mat-icon [ngClass]="{'wrong-icon' : comment.correct === 2,
...@@ -39,6 +34,11 @@ ...@@ -39,6 +34,11 @@
: ('comment-page.mark-not-favorite' | translate)">grade : ('comment-page.mark-not-favorite' | translate)">grade
</mat-icon> </mat-icon>
</button> </button>
<button mat-icon-button *ngIf="comment.read" [disabled]="true" (click)="setRead(comment)">
<mat-icon [ngClass]="{'read-icon': comment.read, 'not-marked' : !comment.read}"
matTooltip="{{ 'comment-page.mark-read' | translate }}">speaker_notes
</mat-icon>
</button>
<button mat-icon-button *ngIf="!isStudent" (click)="openDeleteCommentDialog()"> <button mat-icon-button *ngIf="!isStudent" (click)="openDeleteCommentDialog()">
<mat-icon class="not-marked" matTooltip="{{ 'comment-page.delete' | translate }}">delete <mat-icon class="not-marked" matTooltip="{{ 'comment-page.delete' | translate }}">delete
</mat-icon> </mat-icon>
......
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