From e18471ff6891372d2c6c189e315ade9492264812 Mon Sep 17 00:00:00 2001 From: Allan Otodi Opeto <103313919+AllanOXDi@users.noreply.github.com> Date: Thu, 21 Nov 2024 22:36:46 +0300 Subject: [PATCH] clean up routing business --- .../coach/assets/src/routes/lessonsRoutes.js | 2 +- .../sidePanels/LessonResourceSelection.vue | 20 ++ .../ManageSelectedLessonResource.vue | 222 ++++++++++-------- .../ManageSelectedLessonResource.vue | 168 ------------- 4 files changed, 147 insertions(+), 265 deletions(-) delete mode 100644 kolibri/plugins/coach/assets/src/views/plan/LessonResourceSelectionPage/ManageSelectedLessonResource.vue diff --git a/kolibri/plugins/coach/assets/src/routes/lessonsRoutes.js b/kolibri/plugins/coach/assets/src/routes/lessonsRoutes.js index 8d791353396..825b54842d9 100644 --- a/kolibri/plugins/coach/assets/src/routes/lessonsRoutes.js +++ b/kolibri/plugins/coach/assets/src/routes/lessonsRoutes.js @@ -39,7 +39,7 @@ import QuestionLearnersPage from '../views/common/reports/QuestionLearnersPage.v import EditLessonDetails from '../views/lessons/LessonSummaryPage/sidePanels/EditLessonDetails'; import PreviewSelectedResources from '../views/lessons/LessonSummaryPage/sidePanels/PreviewSelectedResources'; import LessonResourceSelection from '../views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection'; -import ManageSelectedLessonResources from '../views/lessons/LessonSummaryPage/sidePanels/ManageSelectedLessonResources'; +import ManageSelectedLessonResources from '../views/lessons/LessonSummaryPage/sidePanels/ManageSelectedLessonResource'; import { classIdParamRequiredGuard, RouteSegments } from './utils'; const { diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection.vue b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection.vue index 93ec98fa5f4..d2995edde70 100644 --- a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection.vue +++ b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection.vue @@ -71,6 +71,12 @@ + - $router.go(-1)" + closeButtonIconType="close" + @closePanel="closeSidePanel" @shouldFocusFirstEl="() => null" > - - - - - - Lesson : Intro to chemical bond + + {{ $tr('numberOfSelectedResource',{ count : resourcesTable.length })}} + $router.go(-1)" /> + - Size : 16 MB + + + + + {{ coreString('lessonsLabel') }} : {{ currentLesson.title }} + {{ $tr('sizeLabel') }} : {{ bytesForHumans(currentLesson.size) }} - - - - - - - - - {}" - @moveDown="() => {}" - /> - - - - - - - - - - - - 0.4MB - - - - - - - - - - + + + + {}" + @moveDown="() => {}" + /> + + + + + + + + + + - + 4MB + + + + + + + + { }" + /> + + + + + + + + - - - - - + {}" + @click="closeSidePanel()" /> - + @@ -109,27 +102,29 @@ - - - \ No newline at end of file
Lesson : Intro to chemical bond
Size : 16 MB
{{ coreString('lessonsLabel') }} : {{ currentLesson.title }}
{{ $tr('sizeLabel') }} : {{ bytesForHumans(currentLesson.size) }}
0.4MB
4MB