From 26ec2358d8f3baf69ba9adb4c6266ece455df9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20K=C3=A4sler?= <tom.kaesler@mni.thm.de> Date: Thu, 13 Jun 2019 14:07:31 +0200 Subject: [PATCH] Allow lecturer to vote on comments! --- src/app/components/shared/comment/comment.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/shared/comment/comment.component.html b/src/app/components/shared/comment/comment.component.html index 786cbe393..a915ff2f3 100644 --- a/src/app/components/shared/comment/comment.component.html +++ b/src/app/components/shared/comment/comment.component.html @@ -30,11 +30,11 @@ <span class="fill-remaining-space" (click)="openPresentDialog(comment)"></span> <div fxLayout="column" (tap)="startAnimation('rubberBand')" [@rubberBand]="animationState" (@rubberBand.done)="resetAnimationState()"> - <button mat-icon-button [disabled]="!isStudent" (click)="voteUp(comment)"> + <button mat-icon-button (click)="voteUp(comment)"> <mat-icon class="voting-icon" [ngClass]="{'upVoted' : hasVoted === 1}">keyboard_arrow_up</mat-icon> </button> <h2>{{comment.score}}</h2> - <button mat-icon-button [disabled]="!isStudent" (click)="voteDown(comment)"> + <button mat-icon-button (click)="voteDown(comment)"> <mat-icon class="voting-icon" [ngClass]="{'downVoted' : hasVoted === -1}">keyboard_arrow_down</mat-icon> </button> </div> -- GitLab