diff --git a/frontend/src/views/discussions/SingleDiscussion.vue b/frontend/src/views/discussions/SingleDiscussion.vue index 5537268f..674818f0 100644 --- a/frontend/src/views/discussions/SingleDiscussion.vue +++ b/frontend/src/views/discussions/SingleDiscussion.vue @@ -65,18 +65,6 @@ return nodesList.value?.find((it) => it.learningobjectHruid === currentHruid); }); - const nextNode = computed(() => { - if (!currentNode.value || !nodesList.value) return undefined; - const currentIndex = nodesList.value?.indexOf(currentNode.value); - return currentIndex < nodesList.value?.length ? nodesList.value?.[currentIndex + 1] : undefined; - }); - - const previousNode = computed(() => { - if (!currentNode.value || !nodesList.value) return undefined; - const currentIndex = nodesList.value?.indexOf(currentNode.value); - return currentIndex < nodesList.value?.length ? nodesList.value?.[currentIndex - 1] : undefined; - }); - const getQuestionsQuery = useQuestionsQuery( computed( () => @@ -106,18 +94,6 @@ type NavItemState = "teacherExclusive" | "completed" | "notCompleted"; - const ICONS: Record = { - teacherExclusive: "mdi-information", - completed: "mdi-checkbox-marked-circle-outline", - notCompleted: "mdi-checkbox-blank-circle-outline", - }; - - const COLORS: Record = { - teacherExclusive: "info", - completed: "success", - notCompleted: undefined, - }; - function getNavItemState(learningObject: LearningObject): NavItemState { if (learningObject.teacherExclusive) { return "teacherExclusive"; @@ -127,25 +103,6 @@ return "notCompleted"; } - const forGroupQueryParam = computed({ - get: () => route.query.forGroup, - set: async (value: number | undefined) => { - const query = structuredClone(route.query); - query.forGroup = value; - await router.push({ query }); - }, - }); - - async function assign(): Promise { - await router.push({ - path: "/assignment/create", - query: { - hruid: props.hruid, - language: props.language, - }, - }); - } - const studentAssignmentsQueryResult = useStudentAssignmentsQuery( authService.authState.user?.profile.preferred_username, ); @@ -191,13 +148,6 @@ } } - const discussionLink = computed(() => - "/discussion" - + "/" + props.hruid - + "/" + currentNode.value?.language - + "/" + currentNode.value?.learningobjectHruid); - - console.log(getQuestionsQuery.data.value)