style: fix linting issues met Prettier
This commit is contained in:
parent
1d9141bab7
commit
c04b13c555
1 changed files with 2 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
import authService from "@/services/auth/auth-service.ts";
|
import authService from "@/services/auth/auth-service.ts";
|
||||||
import { Language } from "@/data-objects/language.ts";
|
import { Language } from "@/data-objects/language.ts";
|
||||||
import { computed, type ComputedRef, ref } from "vue";
|
import { computed, type ComputedRef, ref } from "vue";
|
||||||
import type { GroupDTOId } from "@dwengo-1/common/interfaces/group";
|
import type { GroupDTOId } from "@dwengo-1/common/interfaces/group";
|
||||||
import type { QuestionData } from "@dwengo-1/common/interfaces/question";
|
import type { QuestionData } from "@dwengo-1/common/interfaces/question";
|
||||||
import type { LearningObjectIdentifierDTO } from "@dwengo-1/interfaces/learning-content";
|
import type { LearningObjectIdentifierDTO } from "@dwengo-1/interfaces/learning-content";
|
||||||
import { useCreateQuestionMutation } from "@/queries/questions.ts";
|
import { useCreateQuestionMutation } from "@/queries/questions.ts";
|
||||||
|
@ -29,9 +29,7 @@
|
||||||
}));
|
}));
|
||||||
const createQuestionMutation = useCreateQuestionMutation(loID);
|
const createQuestionMutation = useCreateQuestionMutation(loID);
|
||||||
|
|
||||||
const showQuestionBox = computed(
|
const showQuestionBox = computed(() => authService.authState.activeRole === AccountType.Student && props.forGroup);
|
||||||
() => authService.authState.activeRole === AccountType.Student && props.forGroup,
|
|
||||||
);
|
|
||||||
|
|
||||||
function submitQuestion(): void {
|
function submitQuestion(): void {
|
||||||
if (props.forGroup && questionInput.value !== "") {
|
if (props.forGroup && questionInput.value !== "") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue