Skip to content
Snippets Groups Projects

Comment icon bar improvements

Merged Lukas Mauß requested to merge comment-icon-bar-improvements into master
All threads resolved!
Compare and
3 files
+ 22
13
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -10,15 +10,12 @@
{{comment.timestamp | date: 'h:mm a'}}
</ng-template>
</div>
<span class="fill-remaining-space"></span>
<button mat-icon-button *ngIf="!isStudent || comment.correct === 2" [disabled]="isStudent"
(click)="markCorrect(comment, 2)">
<mat-icon [ngClass]="{'wrong-icon' : comment.correct === 2,
'not-marked' : (comment.correct === 0 || comment.correct === 1)}"
[matTooltip]="comment.correct != 2 ? ('comment-page.mark-wrong' | translate)
: ('comment-page.mark-not-wrong' | translate)">not_interested
<button mat-icon-button *ngIf="comment.read" [disabled]="true" (click)="setRead(comment)">
<mat-icon svgIcon="beamer" [ngClass]="{'read-icon': comment.read, 'not-marked' : !comment.read}"
matTooltip="{{ 'comment-page.mark-read' | translate }}">
</mat-icon>
</button>
<span class="fill-remaining-space"></span>
<button mat-icon-button *ngIf="!isStudent || comment.correct === 1" [disabled]="isStudent"
(click)="markCorrect(comment, 1)">
<mat-icon [ngClass]="{'correct-icon' : comment.correct === 1,
@@ -27,6 +24,14 @@
: ('comment-page.mark-not-correct' | translate)">check_circle
</mat-icon>
</button>
<button mat-icon-button *ngIf="!isStudent || comment.correct === 2" [disabled]="isStudent"
(click)="markCorrect(comment, 2)">
<mat-icon [ngClass]="{'wrong-icon' : comment.correct === 2,
'not-marked' : (comment.correct === 0 || comment.correct === 1)}"
[matTooltip]="comment.correct != 2 ? ('comment-page.mark-wrong' | translate)
: ('comment-page.mark-not-wrong' | translate)">not_interested
</mat-icon>
</button>
<button mat-icon-button *ngIf="!isStudent || comment.favorite" [disabled]="isStudent"
(click)="setFavorite(comment)">
<mat-icon [ngClass]="{'favorite-icon' : comment.favorite, 'not-marked' : !comment.favorite}"
@@ -34,11 +39,6 @@
: ('comment-page.mark-not-favorite' | translate)">grade
</mat-icon>
</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()">
<mat-icon class="not-marked" matTooltip="{{ 'comment-page.delete' | translate }}">delete
</mat-icon>