From aa67c2c8b72d99f402c4d1548dfb933d2bcca9d9 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Sat, 14 Oct 2023 01:42:24 +0200 Subject: [PATCH] Remove unneeded feedbackSummary --- .../components/feedback/feedbackSummary.vue | 101 ------------------ .../feedback/FeedbackBlock.vue | 8 +- 2 files changed, 3 insertions(+), 106 deletions(-) delete mode 100644 client/src/components/feedback/feedbackSummary.vue diff --git a/client/src/components/feedback/feedbackSummary.vue b/client/src/components/feedback/feedbackSummary.vue deleted file mode 100644 index d623b769..00000000 --- a/client/src/components/feedback/feedbackSummary.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - diff --git a/client/src/pages/learningPath/learningContentPage/feedback/FeedbackBlock.vue b/client/src/pages/learningPath/learningContentPage/feedback/FeedbackBlock.vue index b8f599f2..c36838f9 100644 --- a/client/src/pages/learningPath/learningContentPage/feedback/FeedbackBlock.vue +++ b/client/src/pages/learningPath/learningContentPage/feedback/FeedbackBlock.vue @@ -9,7 +9,6 @@ import { YES_NO, } from "@/pages/learningPath/learningContentPage/feedback/feedback.constants"; import LearningContentMultiLayout from "@/pages/learningPath/learningContentPage/layouts/LearningContentMultiLayout.vue"; -import { useCircleStore } from "@/stores/circle"; import type { LearningContentFeedback } from "@/types"; import { useMutation } from "@urql/vue"; import { useRouteQuery } from "@vueuse/router"; @@ -22,7 +21,6 @@ const props = defineProps<{ content: LearningContentFeedback; }>(); const courseSession = useCurrentCourseSession(); -const circleStore = useCircleStore(); const courseSessionDetailResult = useCourseSessionDetailQuery(); const { t } = useTranslation(); @@ -30,12 +28,12 @@ const { t } = useTranslation(); const stepNo = useRouteQuery("step", "0", { transform: Number, mode: "push" }); const title = computed( - () => `«${circleStore.circle?.title}»: ${t("feedback.areYouSatisfied")}` + () => `«${props.content.circle?.title}»: ${t("feedback.areYouSatisfied")}` ); const circleExperts = computed(() => { - if (circleStore.circle) { - return courseSessionDetailResult.filterCircleExperts(circleStore.circle.slug); + if (props.content?.circle?.slug) { + return courseSessionDetailResult.filterCircleExperts(props.content.circle.slug); } return []; });