From 22b24911361bc759fada608f3fcf37c48dc7bbc4 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Wed, 5 Oct 2022 16:44:04 +0200 Subject: [PATCH] Scroll behaviour in Lernpfad --- .../learningPath/LearningContent.vue | 2 +- .../learningPath/SelfEvaluation.vue | 4 +- client/src/router/index.ts | 7 +++ client/src/services/circle.ts | 11 ++-- client/src/stores/circle.ts | 52 +++++++++---------- client/src/types.ts | 9 ++-- 6 files changed, 45 insertions(+), 40 deletions(-) diff --git a/client/src/components/learningPath/LearningContent.vue b/client/src/components/learningPath/LearningContent.vue index 8e4a85d4..91bfdd57 100644 --- a/client/src/components/learningPath/LearningContent.vue +++ b/client/src/components/learningPath/LearningContent.vue @@ -30,7 +30,7 @@ const block = computed(() => { type="button" class="btn-text inline-flex items-center px-3 py-2 font-normal" data-cy="close-learning-content" - @click="circleStore.closeLearningContent()" + @click="circleStore.closeLearningContent(props.learningContent)" > diff --git a/client/src/components/learningPath/SelfEvaluation.vue b/client/src/components/learningPath/SelfEvaluation.vue index 7fe4afe6..0a0fdc91 100644 --- a/client/src/components/learningPath/SelfEvaluation.vue +++ b/client/src/components/learningPath/SelfEvaluation.vue @@ -26,7 +26,7 @@ function handleContinue() { state.questionIndex += 1; } else { log.debug("continue to next learning content"); - circleStore.continueFromSelfEvaluation(); + circleStore.continueFromSelfEvaluation(props.learningUnit); } } @@ -39,7 +39,7 @@ function handleContinue() {