Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVelezLl committed Nov 8, 2024
1 parent ba19df9 commit 4ab63d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions kolibri/plugins/coach/assets/src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const PageNames = {
LESSON_SELECTION_BOOKMARKS: 'LESSON_SELECTION_BOOKMARKS',
LESSON_SELECTION_BOOKMARKS_MAIN: 'LESSON_SELECTION_BOOKMARKS_MAIN',
LESSON_EDIT_DETAILS: 'LESSON_EDIT_DETAILS',
LESSON_EDIT_DETAILS_BETTER: 'LESSON_EDIT_DETAILS_BETTER',
LESSON_SELECT_RESOURCES: 'LESSON_SELECT_RESOURCES',
LESSON_PREVIEW_SELECTED_RESOURCES: 'LESSON_PREVIEW_SELECTED_RESOURCES',
LESSON_PREVIEW_RESOURCE: 'LESSON_PREVIEW_RESOURCE',
Expand Down
2 changes: 1 addition & 1 deletion kolibri/plugins/coach/assets/src/routes/lessonsRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default [
component: LessonCreationPage,
children: [
{
name: PageNames.LESSON_EDIT_DETAILS,
name: PageNames.LESSON_EDIT_DETAILS_BETTER,
path: 'details/',
component: EditLessonDetails,
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
examOrLesson="exam"
>
<template #dropdown>
<KButton
<KRouterLink
:to="classRoute(PageNames.QUIZ_PREVIEW, {}, { last: PageNames.EXAM_SUMMARY })"
:text="coachString('previewAction')"
appearance="raised-button"
style="margin-right: 8px"
/>
<QuizOptionsDropdownMenu
Expand Down Expand Up @@ -340,7 +342,7 @@
return deleteExam(this.quiz.id)
.then(() => {
this.$store.commit('classSummary/DELETE_ITEM', { map: 'examMap', id: this.quiz.id });
this.$router.replace(this.$router.getRoute(PageNames.EXAMS_ROOT), () => {
this.$router.replace(this.classRoute(PageNames.EXAMS_ROOT), () => {
this.showSnackbarNotification('quizDeleted');
});
})
Expand Down

0 comments on commit 4ab63d4

Please sign in to comment.