style: format en lint
This commit is contained in:
parent
251d50de19
commit
43d76d796b
2 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import authState from "@/services/auth/auth-service.ts";
|
import authState from "@/services/auth/auth-service.ts";
|
||||||
import { onMounted, ref, type ComputedRef } from "vue";
|
import { onMounted, ref } from "vue";
|
||||||
import { validate, version } from "uuid";
|
import { validate, version } from "uuid";
|
||||||
import type { ClassDTO } from "@dwengo-1/common/interfaces/class";
|
import type { ClassDTO } from "@dwengo-1/common/interfaces/class";
|
||||||
import { useCreateJoinRequestMutation, useStudentClassesQuery } from "@/queries/students";
|
import { useCreateJoinRequestMutation, useStudentClassesQuery } from "@/queries/students";
|
||||||
|
@ -45,7 +45,6 @@
|
||||||
students.value = [];
|
students.value = [];
|
||||||
dialog.value = true;
|
dialog.value = true;
|
||||||
|
|
||||||
|
|
||||||
// TODO: change to use class query
|
// TODO: change to use class query
|
||||||
const studentDTOs: StudentDTO[] = (await classController.getStudents(c.id)).students as StudentDTO[];
|
const studentDTOs: StudentDTO[] = (await classController.getStudents(c.id)).students as StudentDTO[];
|
||||||
students.value = studentDTOs;
|
students.value = studentDTOs;
|
||||||
|
@ -145,7 +144,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr
|
||||||
v-for="c in (classResponse.data.classes as ClassDTO[])"
|
v-for="c in classResponse.data.classes as ClassDTO[]"
|
||||||
:key="c.id"
|
:key="c.id"
|
||||||
>
|
>
|
||||||
<td>{{ c.displayName }}</td>
|
<td>{{ c.displayName }}</td>
|
||||||
|
|
|
@ -142,7 +142,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr
|
||||||
v-for="c in (classesResponse.data.classes as ClassDTO[])"
|
v-for="c in classesResponse.data.classes as ClassDTO[]"
|
||||||
:key="c.id"
|
:key="c.id"
|
||||||
>
|
>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue