diff --git a/client/src/components/circle/LearningSequence.vue b/client/src/components/circle/LearningSequence.vue index 028280eb..92cd2d39 100644 --- a/client/src/components/circle/LearningSequence.vue +++ b/client/src/components/circle/LearningSequence.vue @@ -11,12 +11,12 @@ const props = defineProps<{ const circleStore = useCircleStore(); function toggleCompleted(learningContent: LearningContent) { - circleStore.toggleCompleted(learningContent, !learningContent.completed); + circleStore.markCompletion(learningContent, !learningContent.completed); } const someFinished = computed(() => { if (props.learningSequence) { - return circleStore.flatLearningContents.filter((lc) => { + return circleStore.flatChildren.filter((lc) => { return lc.completed && lc.parentLearningSequence?.translation_key === props.learningSequence.translation_key; }).length > 0; } @@ -68,11 +68,30 @@ const someFinished = computed(() => {
- - Selbsteinschätzung +
+ + Selbsteinschätzung: Ich kann das. +
+
+ + Selbsteinschätzung: Muss ich nochmals anschauen +
+
+ + Selbsteinschätzung +

diff --git a/client/src/components/circle/SelfEvaluation.vue b/client/src/components/circle/SelfEvaluation.vue index 3106787e..0c9139f2 100644 --- a/client/src/components/circle/SelfEvaluation.vue +++ b/client/src/components/circle/SelfEvaluation.vue @@ -57,13 +57,29 @@ const currentQuestion = computed(() => questions.value[questionIndex]);

{{ currentQuestion.title }}

- -