Skip to content

Commit

Permalink
dispatch notloading in showexamcreationquestionselectionpage
Browse files Browse the repository at this point in the history
  • Loading branch information
thanksameeelian committed Sep 22, 2023
1 parent 87729ef commit a4d6c5b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function getBookmarks() {
return Promise.all(fetchPromises);
});
}

// //
export function showExamCreationPreviewPage(store, params, fromRoute, query = {}) {
const { classId, contentId } = params;
return store.dispatch('loading').then(() => {
Expand All @@ -206,7 +206,9 @@ export function showExamCreationPreviewPage(store, params, fromRoute, query = {}
name: PageNames.EXAM_CREATION_ROOT,
});
}
//
store.dispatch('notLoading');
// store.commit('CORE_SET_PAGE_LOADING', false);
})
.catch(error => {
store.dispatch('notLoading');
Expand Down Expand Up @@ -332,4 +334,5 @@ export function showExamCreationQuestionSelectionPage(store, toRoute, fromRoute)
store.commit('SET_PAGE_NAME', 'EXAM_CREATION_QUESTION_SELECTION');
store.commit('SET_TOOLBAR_ROUTE', { name: fromRoute.name, params: fromRoute.params });
store.dispatch('examCreation/updateSelectedQuestions');
store.dispatch('notLoading');
}

0 comments on commit a4d6c5b

Please sign in to comment.