Picture of Ludovic Bas
Re: assessment questions
by Ludovic Bas - Friday, 28 July 2017, 2:15 PM
 

Oops, it's more like that:

Adapt.course.set('_isAssessmentPassed', stateModel.assessmentsPass == stateModel.assessments);

 

and don't forget to add assessmentsPass in the return in assessments.js

 

return {
 isComplete: isComplete,
 isPercentageBased: assessmentsConfig._isPercentageBased,
 requireAssessmentPassed: assessmentsConfig._requireAssessmentPassed,
 isPass: isPass,
 scoreAsPercent: scoreAsPercent,
 maxScore: maxScore,
 score: score,
 assessmentsComplete: assessmentsComplete,
 assessmentsPass: assessmentsPass,
 assessments: totalAssessments
};