fix: various links that broke when moving stuff around
This commit is contained in:
parent
9e30efd59d
commit
8e076c3dac
|
|
@ -171,7 +171,7 @@ function findUserPointsHtml(userId: string) {
|
|||
props.learningContent.content_type !==
|
||||
'learnpath.LearningContentEdoniqTest'
|
||||
"
|
||||
:to="`/course/${props.courseSession.course.slug}/cockpit/assignment/${learningContent.content_assignment.id}/${csu.user_id}`"
|
||||
:to="`/course/${props.courseSession.course.slug}/assignment-evaluation/${learningContent.content_assignment.id}/${csu.user_id}`"
|
||||
class="link lg:w-full lg:text-right"
|
||||
data-cy="show-results"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ const courseSessionDetailResult = useCourseSessionDetailQuery();
|
|||
</template>
|
||||
<template #link>
|
||||
<router-link
|
||||
:to="`/course/${props.courseSlug}/cockpit/profile/${csu.user_id}`"
|
||||
:to="`/course/${props.courseSlug}/profile/${csu.user_id}`"
|
||||
class="link w-full lg:text-right"
|
||||
>
|
||||
{{ $t("general.profileLink") }}
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ watch(
|
|||
<div>
|
||||
<router-link
|
||||
class="link"
|
||||
:to="`/course/${courseSlug}/cockpit/profile/${profileUser.user_id}`"
|
||||
:to="`/course/${courseSlug}/profile/${profileUser.user_id}`"
|
||||
>
|
||||
{{ $t("general.profileLink") }}
|
||||
</router-link>
|
||||
|
|
|
|||
|
|
@ -234,10 +234,13 @@ const router = createRouter({
|
|||
},
|
||||
{
|
||||
path: "/course/:courseSlug/cockpit",
|
||||
component: () => import("@/pages/cockpit/cockpitPage/CockpitExpertPage.vue"),
|
||||
props: true,
|
||||
name: "cockpit",
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
component: () => import("@/pages/cockpit/cockpitPage/CockpitExpertPage.vue"),
|
||||
props: true,
|
||||
},
|
||||
{
|
||||
path: "profile/:userId/:circleSlug",
|
||||
component: () => import("@/pages/cockpit/CockpitUserCirclePage.vue"),
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ def get_assignment_completions(
|
|||
)[0],
|
||||
user_id=user.id,
|
||||
last_name=user.last_name,
|
||||
url=f"/course/{course_session.course.slug}/cockpit/assignment/{assignment.id}/{user.id}",
|
||||
url=f"/course/{course_session.course.slug}/assignment-evaluation/{assignment.id}/{user.id}",
|
||||
)
|
||||
for user in sorted_participants
|
||||
]
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ class AttendanceServicesTestCase(TestCase):
|
|||
self.assertEqual(result.status, expected_statuses[result.last_name])
|
||||
self.assertEqual(
|
||||
result.url,
|
||||
f"/course/test-lehrgang/cockpit/assignment/{self.assignment.id}/{result.user_id}",
|
||||
f"/course/test-lehrgang/assignment-evaluation/{self.assignment.id}/{result.user_id}",
|
||||
)
|
||||
|
||||
def test_praxis_assignment_status(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue