fix: verwijder onnodige queries
This commit is contained in:
parent
c7c3a209e1
commit
66ac71c6cb
1 changed files with 1 additions and 16 deletions
|
@ -13,13 +13,11 @@
|
||||||
import authService from "@/services/auth/auth-service.ts";
|
import authService from "@/services/auth/auth-service.ts";
|
||||||
import { LearningPathNode } from "@/data-objects/learning-paths/learning-path-node.ts";
|
import { LearningPathNode } from "@/data-objects/learning-paths/learning-path-node.ts";
|
||||||
import LearningPathGroupSelector from "@/views/learning-paths/LearningPathGroupSelector.vue";
|
import LearningPathGroupSelector from "@/views/learning-paths/LearningPathGroupSelector.vue";
|
||||||
import { useCreateQuestionMutation, useQuestionsQuery } from "@/queries/questions";
|
import { useQuestionsQuery } from "@/queries/questions";
|
||||||
import type { QuestionsResponse } from "@/controllers/questions";
|
import type { QuestionsResponse } from "@/controllers/questions";
|
||||||
import type { LearningObjectIdentifierDTO } from "@dwengo-1/common/interfaces/learning-content";
|
import type { LearningObjectIdentifierDTO } from "@dwengo-1/common/interfaces/learning-content";
|
||||||
import QandA from "@/components/QandA.vue";
|
import QandA from "@/components/QandA.vue";
|
||||||
import type { QuestionDTO } from "@dwengo-1/common/interfaces/question";
|
import type { QuestionDTO } from "@dwengo-1/common/interfaces/question";
|
||||||
import { useStudentAssignmentsQuery, useStudentGroupsQuery } from "@/queries/students";
|
|
||||||
import type { AssignmentDTO } from "@dwengo-1/common/interfaces/assignment";
|
|
||||||
import QuestionNotification from "@/components/QuestionNotification.vue";
|
import QuestionNotification from "@/components/QuestionNotification.vue";
|
||||||
import QuestionBox from "@/components/QuestionBox.vue";
|
import QuestionBox from "@/components/QuestionBox.vue";
|
||||||
import { AccountType } from "@dwengo-1/common/util/account-types";
|
import { AccountType } from "@dwengo-1/common/util/account-types";
|
||||||
|
@ -147,19 +145,6 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const studentAssignmentsQueryResult = useStudentAssignmentsQuery(
|
|
||||||
authService.authState.user?.profile.preferred_username,
|
|
||||||
);
|
|
||||||
|
|
||||||
const loID: LearningObjectIdentifierDTO = {
|
|
||||||
hruid: props.learningObjectHruid as string,
|
|
||||||
language: props.language,
|
|
||||||
};
|
|
||||||
const createQuestionMutation = useCreateQuestionMutation(loID);
|
|
||||||
const groupsQueryResult = useStudentGroupsQuery(authService.authState.user?.profile.preferred_username);
|
|
||||||
|
|
||||||
const questionInput = ref("");
|
|
||||||
|
|
||||||
const discussionLink = computed(
|
const discussionLink = computed(
|
||||||
() =>
|
() =>
|
||||||
"/discussion" +
|
"/discussion" +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue