From 8a1c2f1445cf9733dbbd6f0af3397fdccac4a5d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Tue, 3 Sep 2019 11:10:44 +0200
Subject: [PATCH] Get comment threshold to work

---
 .../_dialogs/comment-settings/comment-settings.component.html   | 2 +-
 .../components/shared/comment-list/comment-list.component.ts    | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/app/components/creator/_dialogs/comment-settings/comment-settings.component.html b/src/app/components/creator/_dialogs/comment-settings/comment-settings.component.html
index 0be381e96..78d77cbdd 100644
--- a/src/app/components/creator/_dialogs/comment-settings/comment-settings.component.html
+++ b/src/app/components/creator/_dialogs/comment-settings/comment-settings.component.html
@@ -7,7 +7,7 @@
       <h3><mat-slide-toggle [(ngModel)]="settingThreshold"></mat-slide-toggle></h3>
     </div>
     <div fxLayout="row" *ngIf="settingThreshold">
-      <mat-slider id="commentSlider" min="-100" max="0" step="10" value="0"
+      <mat-slider id="commentSlider" min="-100" max="0" step="5"
                 [(ngModel)]="commentThreshold" (input)="onSliderChange($event)"></mat-slider>
       <h3>&nbsp;{{commentThreshold | number}}</h3>
     </div>
diff --git a/src/app/components/shared/comment-list/comment-list.component.ts b/src/app/components/shared/comment-list/comment-list.component.ts
index e6c8b65ba..9a1319902 100644
--- a/src/app/components/shared/comment-list/comment-list.component.ts
+++ b/src/app/components/shared/comment-list/comment-list.component.ts
@@ -177,6 +177,7 @@ export class CommentListComponent implements OnInit {
                   break;
                 case 'score':
                   this.comments[i].score = <number>value;
+                  this.getComments();
                   break;
                 case this.ack:
                   const isNowAck = <boolean>value;
-- 
GitLab