From d02b76477e3419433e9834c85bc4481cd91a4651 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Thu, 2 May 2024 16:20:07 +0200 Subject: [PATCH] Hide link to evaluation details in profile --- .../FeedbackByLearningUnitSummary.vue | 2 ++ .../SelfEvaluationAndFeedbackList.vue | 7 +++++++ .../pages/competence/CompetenceCertificateDetailPage.vue | 6 +----- client/src/pages/learningPath/circlePage/CirclePage.vue | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/client/src/components/selfEvaluationFeedback/FeedbackByLearningUnitSummary.vue b/client/src/components/selfEvaluationFeedback/FeedbackByLearningUnitSummary.vue index 13a7d9ca..893e5be3 100644 --- a/client/src/components/selfEvaluationFeedback/FeedbackByLearningUnitSummary.vue +++ b/client/src/components/selfEvaluationFeedback/FeedbackByLearningUnitSummary.vue @@ -5,6 +5,7 @@ import SmileyCell from "@/components/selfEvaluationFeedback/SmileyCell.vue"; const props = defineProps<{ summary: LearningUnitSummary; + hideDetailLink?: boolean; }>(); const hasFeedbackReceived = computed(() => { @@ -34,6 +35,7 @@ const feedbackProviderName = computed(() => { diff --git a/client/src/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackList.vue b/client/src/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackList.vue index 250edb43..02fac2f2 100644 --- a/client/src/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackList.vue +++ b/client/src/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackList.vue @@ -5,11 +5,13 @@ import { computed, ref } from "vue"; import FeedbackByLearningUnitSummary from "@/components/selfEvaluationFeedback/FeedbackByLearningUnitSummary.vue"; import ItDropdownSelect from "@/components/ui/ItDropdownSelect.vue"; import { t } from "i18next"; +import { useUserStore } from "@/stores/user"; const props = defineProps<{ profileUserId: string; }>(); +const userStore = useUserStore(); const courseSession = useCurrentCourseSession(); const selfEvaluationFeedbackSummaries = useSelfEvaluationFeedbackSummaries( courseSession.value.id, @@ -45,6 +47,10 @@ const headerTitle = computed(() => { return t("a.Selbsteinschätzungen"); } }); + +const isOwnEvaluation = computed(() => { + return props.profileUserId === userStore.id; +});