From af8585faa1aa7c39564c583963349c4a2922df9c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 24 Jun 2026 09:18:26 +0200 Subject: cockpit: finish prototype UI * remove process and calendar * add observation period * improve mocking --- js/student-mock.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'js/student-mock.js') diff --git a/js/student-mock.js b/js/student-mock.js index 0ea12ea..7c79e12 100644 --- a/js/student-mock.js +++ b/js/student-mock.js @@ -1,3 +1,9 @@ -import { Student, fetchStudent } from "./student-common.js"; +import { Student } from "./student-common.js"; import { fetchStudentsMock as fetchStudents } from "./mock.js"; -export { Student, fetchStudents, fetchStudent }; \ No newline at end of file + +async function fetchStudent(idFilter, nameFilter, groupFilter) { + const students = await fetchStudents(idFilter, nameFilter, groupFilter); + return students[0]; +} + +export { Student, fetchStudents, fetchStudent }; -- cgit v1.2.3