diff --git a/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/CreateQuizSection.vue b/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/CreateQuizSection.vue index ba463b94dff..86eda1943eb 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/CreateQuizSection.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/CreateQuizSection.vue @@ -395,6 +395,7 @@ questionList$, sectionDeletedNotification$, deleteConfirmation$, + updateResources$, } = enhancedQuizManagementStrings; const { @@ -467,6 +468,7 @@ updateQuiz, addQuestionToSelection, removeQuestionFromSelection, + updateResources$, // Computed channels, @@ -538,6 +540,11 @@ icon: 'delete', id: 'delete', }, + { + label: this.updateResources$(), + icon: 'plus', + id: 'plus', + }, ]; }, }, @@ -572,6 +579,9 @@ handleActiveSectionAction(opt) { const section_id = this.activeSection.section_id; const editRoute = this.$router.getRoute(PageNames.QUIZ_SECTION_EDITOR, { section_id }); + const resourcesRoute = this.$router.getRoute(PageNames.QUIZ_SELECT_RESOURCES, { + section_id, + }); switch (opt.label) { case this.editSectionLabel$(): this.$router.push(editRoute); @@ -579,6 +589,9 @@ case this.deleteSectionLabel$(): this.handleShowConfirmation(section_id); break; + case this.updateResources$(): + this.$router.push(resourcesRoute); + break; } }, tabRefLabel(section_id) { diff --git a/packages/kolibri-common/strings/enhancedQuizManagementStrings.js b/packages/kolibri-common/strings/enhancedQuizManagementStrings.js index 0b75fa8d891..41739147ace 100644 --- a/packages/kolibri-common/strings/enhancedQuizManagementStrings.js +++ b/packages/kolibri-common/strings/enhancedQuizManagementStrings.js @@ -190,4 +190,7 @@ export const enhancedQuizManagementStrings = createTranslator('EnhancedQuizManag message: "Section '{ section_title }' deleted", context: 'A snackbar message that appears when the user deletes a section', }, + updateResources: { + message: 'Update resources', + }, });