From e0437b1a1d3e620b20e955ec769f3ccd1488397e Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Mon, 1 Sep 2025 16:29:14 -0400 Subject: [PATCH] Disable weekly overview when there's no data. --- app/src/apps/classroom_compliance/StudentView.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) {
- - + +