From 74d61fd2f59d28daf97345d1753291e5734dd633 Mon Sep 17 00:00:00 2001 From: Hagen <hagen.dressler@mni.thm.de> Date: Fri, 16 Mar 2018 13:49:51 +0100 Subject: [PATCH] Fix answer-statistic --- src/app/answer-statistics/answer-statistics.component.html | 4 ++-- src/app/answer-statistics/answer-statistics.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/answer-statistics/answer-statistics.component.html b/src/app/answer-statistics/answer-statistics.component.html index 829a5b5c4..a74756553 100644 --- a/src/app/answer-statistics/answer-statistics.component.html +++ b/src/app/answer-statistics/answer-statistics.component.html @@ -25,9 +25,9 @@ <div align="right"> Selected: {{ choice.answers }} times</div> </div> <div fxLayoutAlign="center" fxLayoutGap="10px"> - <button mat-raised-button color="primary" (click)="showEvaluation(selectedContent.index-1)">Before</button> + <button mat-raised-button color="primary" (click)="showEvaluation(selectedContent.index - 1)">Before</button> <div><b>{{ selectedContent.index }} / {{ selectedContent.length }}</b></div> - <button mat-raised-button color="primary" (click)="showEvaluation(selectedContent.index+1)">Next</button> + <button mat-raised-button color="primary" (click)="showEvaluation(selectedContent.index + 1)">Next</button> </div> </mat-tab> </mat-tab-group> diff --git a/src/app/answer-statistics/answer-statistics.component.ts b/src/app/answer-statistics/answer-statistics.component.ts index c622b839e..686f82be5 100644 --- a/src/app/answer-statistics/answer-statistics.component.ts +++ b/src/app/answer-statistics/answer-statistics.component.ts @@ -62,7 +62,7 @@ export class AnswerStatisticsComponent implements OnInit { } } - showStatistic(value) { /** refactor answer class structure for less code and more abstraction*/ + showStatistic(value) { // refactor answer class structure for less code and more abstraction this.statistics = []; for (const question of this.content) { if (value === '1') { @@ -93,6 +93,6 @@ export class AnswerStatisticsComponent implements OnInit { } showEvaluation(index: number) { - /** coming with api connection, logic doesnt make sense without knowledge about api **/ + // coming with api connection, logic doesnt make sense without knowledge about api } } -- GitLab