Update ui/src/components/trainingReport/trainingReportForm.vue #36

Merged
Ajdj100 merged 10 commits from training-report-cbox-reset into main 2025-11-28 16:00:27 -06:00
Showing only changes of commit 0d1788500b - Show all commits

View File

@@ -36,6 +36,15 @@ watch(values, (newErrors) => {
console.log(newErrors.attendees)
}, { deep: true })
watch(() => values.course_id, (newCourseId, oldCourseId) => {
if (!oldCourseId) return;
values.attendees.forEach(a => {
a.passed_bookwork = false;
a.passed_qual = false;
});
});
const submitForm = handleSubmit(onSubmit);
function toMySQLDateTime(date: Date): string {