SKE-78 shuffle questions

This commit is contained in:
Przemysław Stawujak 2019-01-12 14:15:03 +01:00
parent 51235211f6
commit 77b0c99296

View File

@ -68,6 +68,7 @@ export class CompetitionDetailComponent extends AppComponentBase implements OnIn
.pipe(finalize(() => { this.clearBusy(this.competitionDetailAreaId); }))
.subscribe((data: [CompetitionDto, boolean, List<RankingPositionDto>]) => {
this.competition = data[0];
this.shuffleOptions(this.competition.questions);
this.competition.questions.forEach((x) => this.shuffleOptions(x.questionOptions));
this.pager.count = this.competition.questions.length;