diff --git a/kolibri/plugins/coach/assets/src/views/quizzes/QuizSummaryPage/index.vue b/kolibri/plugins/coach/assets/src/views/quizzes/QuizSummaryPage/index.vue index bfe3a541018..eda0cb185c0 100644 --- a/kolibri/plugins/coach/assets/src/views/quizzes/QuizSummaryPage/index.vue +++ b/kolibri/plugins/coach/assets/src/views/quizzes/QuizSummaryPage/index.vue @@ -79,7 +79,7 @@ { tab.to = this.classRoute( - this.group ? PageNames.GROUP_EXAM_SUMMARY : PageNames.EXAM_SUMMARY, + this.group ? this.PageNames.GROUP_EXAM_SUMMARY : this.PageNames.EXAM_SUMMARY, { tabId: tab.id }, ); }); @@ -260,8 +251,7 @@ methods: { // @public setData(data) { - const { exam, difficultQuestions } = data; - this.quiz = exam; + const { difficultQuestions } = data; this.difficultQuestions = difficultQuestions; this.loading = false; this.$store.dispatch('notLoading'); @@ -275,7 +265,7 @@ setCurrentAction(action) { if (action === 'EDIT_DETAILS') { this.$router.push({ - name: PageNames.EXAM_CREATION_ROOT, + name: this.PageNames.EXAM_CREATION_ROOT, params: { ...this.$route.params, sectionIndex: 0 }, }); } else { @@ -339,10 +329,10 @@ }); }, handleSubmitDelete() { - return deleteExam(this.quiz.id) + return deleteExam(this.quizId) .then(() => { - this.$store.commit('classSummary/DELETE_ITEM', { map: 'examMap', id: this.quiz.id }); - this.$router.replace(this.classRoute(PageNames.EXAMS_ROOT), () => { + this.$store.commit('classSummary/DELETE_ITEM', { map: 'examMap', id: this.quizId }); + this.$router.replace(this.classRoute(this.PageNames.EXAMS_ROOT), () => { this.showSnackbarNotification('quizDeleted'); }); }) @@ -351,7 +341,7 @@ }); }, detailLink(learnerId) { - return this.classRoute(PageNames.QUIZ_LEARNER_PAGE_ROOT, { + return this.classRoute(this.PageNames.QUIZ_LEARNER_PAGE_ROOT, { learnerId, }); },