From 8c5adb00492ef8a2077eb7b056b9d2a0c5b3215d Mon Sep 17 00:00:00 2001 From: laurejablonski Date: Mon, 21 Apr 2025 23:46:01 +0200 Subject: [PATCH] feat: zien vragen en antwoorden --- .../views/learning-paths/LearningPathPage.vue | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/frontend/src/views/learning-paths/LearningPathPage.vue b/frontend/src/views/learning-paths/LearningPathPage.vue index 453ac66a..0e8218bc 100644 --- a/frontend/src/views/learning-paths/LearningPathPage.vue +++ b/frontend/src/views/learning-paths/LearningPathPage.vue @@ -13,6 +13,11 @@ import authService from "@/services/auth/auth-service.ts"; import { LearningPathNode } from "@/data-objects/learning-paths/learning-path-node.ts"; import LearningPathGroupSelector from "@/views/learning-paths/LearningPathGroupSelector.vue"; + import { useQuestionsQuery } from "@/queries/questions"; + import type { QuestionsResponse } from "@/controllers/questions"; + import type { LearningObjectIdentifierDTO } from "@dwengo-1/common/interfaces/learning-content"; + import QandA from "@/components/QandA.vue"; +import type { QuestionDTO } from "@dwengo-1/common/interfaces/question"; const router = useRouter(); const route = useRoute(); @@ -68,6 +73,17 @@ return currentIndex < nodesList.value?.length ? nodesList.value?.[currentIndex - 1] : undefined; }); + const getQuestionsQuery = useQuestionsQuery( + computed( + () => + ({ + language: currentNode.value?.language, + hruid: currentNode.value?.learningobjectHruid, + version: currentNode.value?.version, + }) as LearningObjectIdentifierDTO, + ), + ); + const navigationDrawerShown = ref(true); function isLearningObjectCompleted(learningObject: LearningObject): boolean { @@ -257,6 +273,12 @@ {{ t("next") }} + + +