Hides the leaderboard and question button if the reading confirmation is shown

parent fa599d97
......@@ -83,6 +83,11 @@ export class QuizResultsComponent implements OnInit, OnDestroy {
if (!this.quizService.quiz || typeof index === 'undefined' || index < 0 || index > this.quizService.quiz.questionList.length) {
return;
}
if (index === this.quizService.quiz.currentQuestionIndex && //
this.quizService.quiz.sessionConfig.readingConfirmationEnabled && //
this.quizService.readingConfirmationRequested) {
return;
}
return ![QuestionType.SurveyQuestion, QuestionType.ABCDSingleChoiceQuestion].includes(this.quizService.quiz.questionList[index].TYPE);
}
......@@ -91,6 +96,11 @@ export class QuizResultsComponent implements OnInit, OnDestroy {
if (!this.quizService.quiz || typeof index === 'undefined' || index < 0 || index > this.quizService.quiz.questionList.length) {
return;
}
if (index === this.quizService.quiz.currentQuestionIndex && //
this.quizService.quiz.sessionConfig.readingConfirmationEnabled && //
this.quizService.readingConfirmationRequested) {
return;
}
return ![QuestionType.ABCDSingleChoiceQuestion].includes(this.quizService.quiz.questionList[index].TYPE);
}
......
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