feat: batch notifications
This commit is contained in:
@@ -66,9 +66,10 @@
|
||||
<Discussions
|
||||
doctype="LMS Batch"
|
||||
:docname="batch.data.name"
|
||||
title="Discussions"
|
||||
:title="__('Discussions')"
|
||||
:key="batch.data.name"
|
||||
:singleThread="true"
|
||||
:scrollToBottom="true"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
<script setup>
|
||||
import { computed, inject } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { BookOpen, Calendar, Clock } from 'lucide-vue-next'
|
||||
import { BookOpen, Clock } from 'lucide-vue-next'
|
||||
import { formatTime } from '@/utils'
|
||||
import { Breadcrumbs, createResource } from 'frappe-ui'
|
||||
import CourseCard from '@/components/CourseCard.vue'
|
||||
|
||||
@@ -115,10 +115,10 @@ const readNotifications = createListResource({
|
||||
})
|
||||
|
||||
const markAsRead = createResource({
|
||||
url: 'frappe.desk.doctype.notification_log.notification_log.mark_as_read',
|
||||
url: 'lms.lms.api.mark_as_read',
|
||||
makeParams(values) {
|
||||
return {
|
||||
docname: values.name,
|
||||
name: values.name,
|
||||
}
|
||||
},
|
||||
onSuccess(data) {
|
||||
@@ -128,7 +128,7 @@ const markAsRead = createResource({
|
||||
})
|
||||
|
||||
const markAllAsRead = createResource({
|
||||
url: 'frappe.desk.doctype.notification_log.notification_log.mark_all_as_read',
|
||||
url: 'lms.lms.api.mark_all_as_read',
|
||||
onSuccess(data) {
|
||||
unReadNotifications.reload()
|
||||
readNotifications.reload()
|
||||
|
||||
Reference in New Issue
Block a user