Fix title, add basic link to persons

This commit is contained in:
Christian Cueni 2024-04-22 11:05:50 +02:00
parent e0b4a045ce
commit db7fbdd03a
2 changed files with 7 additions and 2 deletions

View File

@ -156,6 +156,7 @@ function hasActionButton(): boolean {
<MentorMenteeCount <MentorMenteeCount
v-if="hasWidget('MentorPersonWidget')" v-if="hasWidget('MentorPersonWidget')"
:course-id="courseConfig.course_id" :course-id="courseConfig.course_id"
:course-slug="courseConfig?.course_slug"
/> />
<MentorCompetenceSummary <MentorCompetenceSummary
v-if="hasWidget('MentorCompetenceWidget')" v-if="hasWidget('MentorCompetenceWidget')"

View File

@ -6,6 +6,7 @@ import BaseBox from "@/components/dashboard/BaseBox.vue";
const props = defineProps<{ const props = defineProps<{
courseId: string; courseId: string;
courseSlug: string;
}>(); }>();
const menteeCount: Ref<number> = ref(0); const menteeCount: Ref<number> = ref(0);
@ -18,8 +19,11 @@ onMounted(async () => {
<template> <template>
<div class="w-[325px]"> <div class="w-[325px]">
<BaseBox :details-link="'foo'" data-cy="dashboard.mentor.competenceSummary"> <BaseBox
<template #title>{{ $t("Elemente zu erledigen") }}</template> :details-link="`/dashboard/persons`"
data-cy="dashboard.mentor.competenceSummary"
>
<template #title>{{ $t("Personen") }}</template>
<template #content> <template #content>
<div class="flex flex-row space-x-3 bg-white pb-6"> <div class="flex flex-row space-x-3 bg-white pb-6">
<div <div