feat: link naar discussions toegevoegd in leerpad pagina
This commit is contained in:
parent
d03f8431a8
commit
ab1c94f012
1 changed files with 15 additions and 0 deletions
|
@ -190,6 +190,13 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const discussionLink = computed(() =>
|
||||||
|
"/discussion"
|
||||||
|
+ "/" + props.hruid
|
||||||
|
+ "/" + currentNode.value?.language
|
||||||
|
+ "/" + currentNode.value?.learningobjectHruid);
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -363,6 +370,14 @@
|
||||||
:query-result="getQuestionsQuery"
|
:query-result="getQuestionsQuery"
|
||||||
v-slot="questionsResponse: { data: QuestionsResponse }"
|
v-slot="questionsResponse: { data: QuestionsResponse }"
|
||||||
>
|
>
|
||||||
|
<p>
|
||||||
|
View questions in
|
||||||
|
<router-link
|
||||||
|
:to=discussionLink
|
||||||
|
>
|
||||||
|
discussions
|
||||||
|
</router-link>
|
||||||
|
</p>
|
||||||
<QandA :questions="(questionsResponse.data.questions as QuestionDTO[]) ?? []" />
|
<QandA :questions="(questionsResponse.data.questions as QuestionDTO[]) ?? []" />
|
||||||
</using-query-result>
|
</using-query-result>
|
||||||
</using-query-result>
|
</using-query-result>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue