diff --git a/app/src/apps/classroom_compliance/EntriesTable.vue b/app/src/apps/classroom_compliance/EntriesTable.vue index a9a39a7..6f6cf07 100644 --- a/app/src/apps/classroom_compliance/EntriesTable.vue +++ b/app/src/apps/classroom_compliance/EntriesTable.vue @@ -30,6 +30,7 @@ enum TableView { const students: Ref = ref([]) const sortingChoice: Ref = ref('name') const selectedView: Ref = ref(TableView.FULL) +const hideRemovedStudents: Ref = ref(false) const lastSaveState: Ref = ref(null) const lastSaveStateTimestamp: Ref = ref(0) @@ -216,6 +217,13 @@ function getVisibleDates(): string[] { return [] } +function getVisibleStudents(): EntriesResponseStudent[] { + if (hideRemovedStudents.value === true) { + return students.value.filter(s => !s.removed && s.classId === props.classId) + } + return students.value +} + function getVisibleStudentEntries(student: EntriesResponseStudent): Record { if (selectedView.value === TableView.FULL) return student.entries if (selectedView.value === TableView.TODAY) { @@ -267,6 +275,12 @@ defineExpose({ + + + + +

@@ -285,16 +299,13 @@ defineExpose({ - + {{ idx + 1 }}. - - -