fix: lesson editing

This commit is contained in:
Jannat Patel
2024-03-07 10:06:32 +05:30
parent 0ce7c74778
commit 2126b4f657
9 changed files with 87 additions and 28 deletions

View File

@@ -145,9 +145,9 @@ const removeStudent = createResource({
const removeStudents = (selections) => {
selections.forEach(async (student) => {
console.log(student)
removeStudent.submit({ student })
await setTimeout(1000)
})
students.reload()
}
</script>

View File

@@ -72,6 +72,7 @@ import { createToast, getFileSize } from '@/utils/'
const resume = ref(null)
const show = defineModel()
const user = inject('$user')
const application = defineModel('application')
const props = defineProps({
job: {
@@ -117,6 +118,8 @@ const submitResume = (close) => {
icon: 'check',
iconClasses: 'bg-green-600 text-white rounded-md p-px',
})
application.value.reload()
close()
},
onError(err) {
createToast({