Commit 930a8aa3 authored by Lukas Mauß's avatar Lukas Mauß

Merge branch 'allow-lecturer-vote' into 'master'

Allow lecturer to vote on comments

See merge request !224
parents 45477124 26ec2358
Pipeline #27138 passed with stages
in 7 minutes and 57 seconds
......@@ -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>
......
Markdown is supported
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