Skip to content

Commit 51549f0

Browse files
committed
Skip initClassInfo request for quiz and lesson resource selection side panel subpages
1 parent 1d11077 commit 51549f0

File tree

2 files changed

+25
-2
lines changed
  • kolibri/plugins/coach/assets/src

2 files changed

+25
-2
lines changed

kolibri/plugins/coach/assets/src/app.js

+20
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ class CoachToolsModule extends KolibriApp {
117117
to.name &&
118118
[
119119
PageNames.EXAMS_ROOT,
120+
PageNames.EXAM_CREATION_ROOT,
120121
PageNames.LESSONS_ROOT,
121122
PageNames.LESSON_CREATION_ROOT,
122123
PageNames.LESSON_SUMMARY,
@@ -126,6 +127,25 @@ class CoachToolsModule extends KolibriApp {
126127
PageNames.GROUP_ENROLL,
127128
PageNames.GROUPS_ROOT,
128129
PageNames.HOME_PAGE,
130+
PageNames.LESSON_SELECT_RESOURCES,
131+
PageNames.LESSON_SELECT_RESOURCES_PREVIEW_SELECTION,
132+
PageNames.LESSON_SELECT_RESOURCES_PREVIEW_RESOURCE,
133+
PageNames.LESSON_SELECT_RESOURCES_INDEX,
134+
PageNames.LESSON_SELECT_RESOURCES_SEARCH,
135+
PageNames.LESSON_SELECT_RESOURCES_SEARCH_RESULTS,
136+
PageNames.LESSON_SELECT_RESOURCES_BOOKMARKS,
137+
PageNames.LESSON_SELECT_RESOURCES_TOPIC_TREE,
138+
PageNames.QUIZ_SELECT_RESOURCES,
139+
PageNames.QUIZ_SELECT_RESOURCES_INDEX,
140+
PageNames.QUIZ_SELECT_RESOURCES_BOOKMARKS,
141+
PageNames.QUIZ_SELECT_RESOURCES_TOPIC_TREE,
142+
PageNames.QUIZ_PREVIEW_SELECTED_RESOURCES,
143+
PageNames.QUIZ_PREVIEW_SELECTED_QUESTIONS,
144+
PageNames.QUIZ_SELECT_RESOURCES_SETTINGS,
145+
PageNames.QUIZ_SELECT_RESOURCES_SEARCH,
146+
PageNames.QUIZ_SELECT_RESOURCES_SEARCH_RESULTS,
147+
PageNames.QUIZ_PREVIEW_RESOURCE,
148+
PageNames.QUIZ_SELECT_RESOURCES_LANDING_SETTINGS,
129149
HomeActivityPage.name,
130150
].includes(to.name)
131151
) {

kolibri/plugins/coach/assets/src/views/quizzes/CreateExamPage/index.vue

+5-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
import get from 'lodash/get';
117117
import { ERROR_CONSTANTS } from 'kolibri/constants';
118118
import CatchErrors from 'kolibri/utils/CatchErrors';
119-
import { ref } from 'vue';
119+
import { ref, getCurrentInstance } from 'vue';
120120
import pickBy from 'lodash/pickBy';
121121
import BottomAppBar from 'kolibri/components/BottomAppBar';
122122
import commonCoreStrings from 'kolibri/uiText/commonCoreStrings';
@@ -140,9 +140,10 @@
140140
},
141141
mixins: [commonCoreStrings],
142142
setup() {
143+
const store = getCurrentInstance().proxy.$store;
143144
const closeConfirmationToRoute = ref(null);
144145
const { createSnackbar } = useSnackbar();
145-
const { classId, groups } = useCoreCoach();
146+
const { classId, initClassInfo, groups } = useCoreCoach();
146147
const {
147148
quizHasChanged,
148149
quiz,
@@ -155,6 +156,8 @@
155156
const showError = ref(false);
156157
const quizInitialized = ref(false);
157158
159+
initClassInfo().then(() => store.dispatch('notLoading'));
160+
158161
const {
159162
saveAndClose$,
160163
allSectionsEmptyWarning$,

0 commit comments

Comments
 (0)