feat: kleine verbetering

This commit is contained in:
Joyelle Ndagijimana 2025-05-17 01:06:12 +02:00
parent 92e7bccf5f
commit f0b723cc63
2 changed files with 2 additions and 1 deletions

View file

@ -406,7 +406,7 @@ function removeStudent(groupIndex: number, student: StudentItem): void {
<v-btn
color="primary"
@click="generateRandomGroups"
:disabled="groupSize < 1"
:disabled="groupSize < 1 || groupSize > allStudents.length"
block
>
{{ t("generate-groups") }}

View file

@ -144,6 +144,7 @@ async function saveChanges(): Promise<void> {
}
async function handleGroupsUpdated(updatedGroups: string[][]): Promise<void> {
console.log(updatedGroups);
const assignmentDTO: AssignmentDTO = {
groups: updatedGroups,
};