diff --git a/app/src/apps/classroom_compliance/StudentView.vue b/app/src/apps/classroom_compliance/StudentView.vue index f06dbb2..e5dca66 100644 --- a/app/src/apps/classroom_compliance/StudentView.vue +++ b/app/src/apps/classroom_compliance/StudentView.vue @@ -81,7 +81,7 @@ onMounted(async () => { }) async function deleteThisStudent() { - if (!cls.value || !student.value) return + if (!cls.value || !student.value || cls.value.archived) return const choice = await deleteConfirmDialog.value?.show() if (!choice) return await apiClient.deleteStudent(cls.value.id, student.value.id) @@ -107,8 +107,9 @@ function getFormattedDate(entry: Entry) {
- - + +