fix: mag geen lege groepen aanmaken
This commit is contained in:
parent
2f67033251
commit
59ed7ab3b5
1 changed files with 11 additions and 2 deletions
|
@ -314,13 +314,16 @@
|
||||||
function saveDragDrop(): void {
|
function saveDragDrop(): void {
|
||||||
emit(
|
emit(
|
||||||
"groupsUpdated",
|
"groupsUpdated",
|
||||||
currentGroups.value.map((g) => g.map((s) => s.username)),
|
currentGroups.value
|
||||||
|
.filter((g) => g.length > 0) // Filter out empty groups
|
||||||
|
.map((g) => g.map((s) => s.username)),
|
||||||
);
|
);
|
||||||
activeDialog.value = null;
|
activeDialog.value = null;
|
||||||
emit("done");
|
emit("done");
|
||||||
emit("close");
|
emit("close");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const showGroupsPreview = computed(() => currentGroups.value.length > 0 || unassignedStudents.value.length > 0);
|
const showGroupsPreview = computed(() => currentGroups.value.length > 0 || unassignedStudents.value.length > 0);
|
||||||
|
|
||||||
function removeStudent(groupIndex: number, student: StudentItem): void {
|
function removeStudent(groupIndex: number, student: StudentItem): void {
|
||||||
|
@ -472,7 +475,13 @@
|
||||||
v-if="currentGroups.length === 0"
|
v-if="currentGroups.length === 0"
|
||||||
class="text-center py-4"
|
class="text-center py-4"
|
||||||
>
|
>
|
||||||
<v-alert type="info">{{ t("no-groups-yet") }}</v-alert>
|
<div>
|
||||||
|
<v-icon
|
||||||
|
icon="mdi-information-outline"
|
||||||
|
size="small"
|
||||||
|
/>
|
||||||
|
{{ t("currently-no-groups") }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue