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

Add tooltips to comment-icons

parent 3330bca7
1 merge request!197Several fixes
...@@ -11,14 +11,16 @@ ...@@ -11,14 +11,16 @@
{{comment.timestamp | date: 'h:mm a'}} {{comment.timestamp | date: 'h:mm a'}}
</ng-template> </ng-template>
</div> </div>
<button mat-icon-button [disabled]="isStudent" (click)="setCorrect(comment)"> <button mat-icon-button [disabled]="isStudent" (click)="setCorrect(comment)"
matTooltip="{{ 'comment-page.correct' | translate }}">
<mat-icon [ngClass]="{true : 'correct-icon', false: 'not-marked'}[comment.correct]">check_circle</mat-icon> <mat-icon [ngClass]="{true : 'correct-icon', false: 'not-marked'}[comment.correct]">check_circle</mat-icon>
</button> </button>
<button mat-icon-button [disabled]="isStudent" <button mat-icon-button [disabled]="isStudent" (click)="setFavorite(comment)"
(click)="setFavorite(comment)"> matTooltip="{{ 'comment-page.favorite' | translate }}">
<mat-icon [ngClass]="{true: 'favorite-icon', false: 'not-marked'}[comment.favorite]">favorite</mat-icon> <mat-icon [ngClass]="{true: 'favorite-icon', false: 'not-marked'}[comment.favorite]">favorite</mat-icon>
</button> </button>
<button mat-icon-button [disabled]="isStudent" (click)="setRead(comment)"> <button mat-icon-button [disabled]="isStudent" (click)="setRead(comment)"
matTooltip="{{ 'comment-page.read' | translate }}">
<mat-icon class="icon" [ngClass]="{'read-icon': comment.read, 'not-marked' : !comment.read}">visibility <mat-icon class="icon" [ngClass]="{'read-icon': comment.read, 'not-marked' : !comment.read}">visibility
</mat-icon> </mat-icon>
</button> </button>
......
...@@ -92,7 +92,10 @@ ...@@ -92,7 +92,10 @@
"semicolon": "Standard CSV", "semicolon": "Standard CSV",
"export": "Exportieren", "export": "Exportieren",
"really": "Wollen sie wirklich alle Kommentare dieser Session löschen?", "really": "Wollen sie wirklich alle Kommentare dieser Session löschen?",
"no-comments": "Es wurden noch keine Kommentare erstellt ..." "no-comments": "Es wurden noch keine Kommentare erstellt ...",
"correct": "Als richtig markieren",
"favorite": "Als Favoriten markieren",
"read": "Als gelesen markieren"
}, },
"comment-list": { "comment-list": {
"search": "Suchen", "search": "Suchen",
......
...@@ -92,7 +92,10 @@ ...@@ -92,7 +92,10 @@
"semicolon": "Standard CSV", "semicolon": "Standard CSV",
"export": "Export", "export": "Export",
"really": "Do you really want to delete all comments of this session?", "really": "Do you really want to delete all comments of this session?",
"no-comments": "No comments have been created yet ..." "no-comments": "No comments have been created yet ...",
"correct": "Mark as correct",
"favorite": "Mark as favorite",
"read": "Mark as read"
}, },
"comment-list": { "comment-list": {
"search": "Search", "search": "Search",
......
...@@ -22,7 +22,10 @@ ...@@ -22,7 +22,10 @@
"error-comment": "Bitte geben Sie einen Kommentartext ein.", "error-comment": "Bitte geben Sie einen Kommentartext ein.",
"error-title": "Bitte geben Sie einen Titel ein.", "error-title": "Bitte geben Sie einen Titel ein.",
"error-both-fields": "Bitte füllen Sie alle Felder aus.", "error-both-fields": "Bitte füllen Sie alle Felder aus.",
"no-comments": "Es wurden noch keine Kommentare erstellt ..." "no-comments": "Es wurden noch keine Kommentare erstellt ...",
"correct": "Richtig",
"favorite": "Favorit",
"read": "Gelesen"
}, },
"comment-list": { "comment-list": {
"search": "Suchen", "search": "Suchen",
......
...@@ -22,7 +22,10 @@ ...@@ -22,7 +22,10 @@
"error-title": "Please enter a title.", "error-title": "Please enter a title.",
"error-comment": "Please enter a comment-text.", "error-comment": "Please enter a comment-text.",
"error-both-fields": "Please fill in all fields.", "error-both-fields": "Please fill in all fields.",
"no-comments": "No comments have been created yet ..." "no-comments": "No comments have been created yet ...",
"correct": "Correct",
"favorite": "Favorite",
"read": "Read"
}, },
"comment-list": { "comment-list": {
"search": "Search", "search": "Search",
......
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