feat(frontend): groups in assignments ophalen
This commit is contained in:
parent
45cb020861
commit
d6009ff878
8 changed files with 182 additions and 126 deletions
|
@ -7,7 +7,7 @@ import type {StudentsResponse} from "@/controllers/students.ts";
|
|||
|
||||
const props = defineProps<{
|
||||
classId: string | undefined
|
||||
groups: string[][], // All groups
|
||||
groups: string[][],
|
||||
}>();
|
||||
const emit = defineEmits(['groupCreated']);
|
||||
const {t} = useI18n();
|
||||
|
@ -16,7 +16,6 @@ const selectedStudents = ref([]);
|
|||
|
||||
const studentQueryResult = useClassStudentsQuery(() => props.classId, true);
|
||||
|
||||
|
||||
function filterStudents(data: StudentsResponse): { title: string, value: string }[] {
|
||||
const students = data.students;
|
||||
const studentsInGroups = props.groups.flat();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue