diff --git a/frontend/src/components/AppSidebar.vue b/frontend/src/components/AppSidebar.vue index 7dba321c..dfc67968 100644 --- a/frontend/src/components/AppSidebar.vue +++ b/frontend/src/components/AppSidebar.vue @@ -186,18 +186,27 @@ const addQuizzes = () => { } const addPrograms = () => { - if (settingsStore.learningPaths.data) { - let activeFor = ['Programs', 'ProgramForm'] - let index = 1 - if (!isInstructor.value && !isModerator.value) { - sidebarLinks.value = sidebarLinks.value.filter( - (link) => link.label !== 'Courses' - ) - activeFor.push('CourseDetail') - activeFor.push('Lesson') - index = 0 - } + let activeFor = ['Programs', 'ProgramForm'] + let index = 1 + let canAddProgram = false + if ( + !isInstructor.value && + !isModerator.value && + settingsStore.learningPaths.data + ) { + sidebarLinks.value = sidebarLinks.value.filter( + (link) => link.label !== 'Courses' + ) + activeFor.push('CourseDetail') + activeFor.push('Lesson') + index = 0 + canAddProgram = true + } else if (isInstructor.value || isModerator.value) { + canAddProgram = true + } + + if (canAddProgram) { sidebarLinks.value.splice(index, 0, { label: 'Programs', icon: 'Route', diff --git a/frontend/src/components/DesktopLayout.vue b/frontend/src/components/DesktopLayout.vue index 70818bbe..79a4a1dc 100644 --- a/frontend/src/components/DesktopLayout.vue +++ b/frontend/src/components/DesktopLayout.vue @@ -8,7 +8,6 @@
-
@@ -17,5 +16,4 @@ diff --git a/frontend/src/pages/ProgramForm.vue b/frontend/src/pages/ProgramForm.vue index 3f99870e..b9a74790 100644 --- a/frontend/src/pages/ProgramForm.vue +++ b/frontend/src/pages/ProgramForm.vue @@ -3,7 +3,7 @@ class="sticky top-0 z-10 flex flex-col md:flex-row md:items-center justify-between border-b bg-white px-3 py-2.5 sm:px-5" > - @@ -50,6 +50,7 @@ item-key="name" group="items" @end="updateOrder" + class="cursor-move" >