diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonEditDetailsPage/EditDetailsResourceListTable.vue b/kolibri/plugins/coach/assets/src/views/lessons/LessonEditDetailsPage/EditDetailsResourceListTable.vue index 54b4af7f1bb..64e107555b5 100644 --- a/kolibri/plugins/coach/assets/src/views/lessons/LessonEditDetailsPage/EditDetailsResourceListTable.vue +++ b/kolibri/plugins/coach/assets/src/views/lessons/LessonEditDetailsPage/EditDetailsResourceListTable.vue @@ -130,17 +130,15 @@ setup() { const { createSnackbar, clearSnackbar } = useSnackbar(); const { noResourcesInLessonLabel$ } = coachStrings; - const { - moveResourceUpButtonDescription$, - moveResourceDownButtonDescription$ - } = searchAndFilterStrings; + const { moveResourceUpButtonDescription$, moveResourceDownButtonDescription$ } = + searchAndFilterStrings; return { PageNames, noResourcesInLessonLabel$, createSnackbar, clearSnackbar, moveResourceUpButtonDescription$, - moveResourceDownButtonDescription$ + moveResourceDownButtonDescription$, }; }, props: { diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/tables/LessonResourcesTable.vue b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/tables/LessonResourcesTable.vue index f7ddbf05441..99d78365a16 100644 --- a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/tables/LessonResourcesTable.vue +++ b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/tables/LessonResourcesTable.vue @@ -27,8 +27,8 @@ -
- - + if (nextRouteName) { + const sectionIndex = + this.reorderedSectionIndex !== null && + this.reorderedSectionIndex !== this.activeSectionIndex + ? this.reorderedSectionIndex + : this.activeSectionIndex; + + this.$router.push({ + name: nextRouteName, + params: { + sectionIndex, + classId: this.$route.params.classId, + quizId: this.$route.params.quizId, + }, + }); + } else { + this.$emit('closePanel'); + } + }, + handleKeyboardDragDown(oldIndex, array) { + const newArray = this.moveDownOne(oldIndex, array); + this.sectionOrderList = newArray; + }, + handleKeyboardDragUp(oldIndex, array) { + const newArray = this.moveUpOne(oldIndex, array); + this.sectionOrderList = newArray; + }, + sectionOrderingTitle(section) { + const sectionIndexOrder = this.allSections.findIndex( + s => s.section_id === section.section_id, + ); + return displaySectionTitle(section, sectionIndexOrder).toUpperCase(); + }, + }, + }; + diff --git a/kolibri/plugins/device/assets/src/views/RearrangeChannelsPage.vue b/kolibri/plugins/device/assets/src/views/RearrangeChannelsPage.vue index d7fd1c269be..d221b0d0439 100644 --- a/kolibri/plugins/device/assets/src/views/RearrangeChannelsPage.vue +++ b/kolibri/plugins/device/assets/src/views/RearrangeChannelsPage.vue @@ -1,5 +1,4 @@ - - diff --git a/packages/kolibri-common/components/sortable/DragSortWidget/index.vue b/packages/kolibri-common/components/sortable/DragSortWidget/index.vue index 73f9ce1a790..37a4381ab1f 100644 --- a/packages/kolibri-common/components/sortable/DragSortWidget/index.vue +++ b/packages/kolibri-common/components/sortable/DragSortWidget/index.vue @@ -11,7 +11,7 @@ icon="chevronUp" class="btn up" size="mini" - :ariaLabel="upLabel" + :ariaLabel="upLabel" :class="{ visuallyhidden: !hasFocus }" @click="clickUp" @keyup.space="clickUp" @@ -43,35 +43,34 @@