feat: show student course and assessment progress on batch page

This commit is contained in:
Jannat Patel
2024-12-13 10:44:56 +05:30
parent 0beffc3083
commit fdacab66f7
4 changed files with 104 additions and 55 deletions

View File

@@ -28,6 +28,7 @@
import { Dialog, createResource } from 'frappe-ui'
import { ref } from 'vue'
import Link from '@/components/Controls/Link.vue'
import { showToast } from '@/utils'
const students = defineModel('reloadStudents')
const student = ref()
@@ -61,8 +62,11 @@ const addStudent = (close) => {
{
onSuccess() {
students.value.reload()
close()
student.value = null
close()
},
onError(err) {
showToast(__('Error'), __(err.messages?.[0] || err), 'x')
},
}
)