feat: notification sent checkbox to prevent resending the notification

This commit is contained in:
Jannat Patel
2026-01-13 19:06:30 +05:30
parent 8ad5288226
commit a09599ec8a
14 changed files with 437 additions and 526 deletions

View File

@@ -442,7 +442,6 @@ const formatTime = (timeStr) => {
const editBatch = createResource({
url: 'frappe.client.set_value',
makeParams(values) {
console.log(batch.meta_image, batch.video_link)
return {
doctype: 'LMS Batch',
name: props.batchName,

View File

@@ -230,26 +230,32 @@ const handleMarkAsRead = (logName) => {
const navigateToPage = (log) => {
if (!log.link) return
/* handleMarkAsRead(log.name) */
let link = log.link.split('/')
console.log(link)
if (link[2] == 'courses') {
router.push({
name: 'CourseDetail',
params: { courseName: link[3] },
})
} else if (link[2] == 'batches') {
if (link[3] == 'details') {
} else if (link.includes('batches')) {
if (link.includes('details')) {
router.push({
name: 'BatchDetail',
params: { batchName: link[4] },
params: { batchName: link.pop() },
})
} else {
router.push({
name: 'Batch',
params: { batchName: link[3] },
params: { batchName: link.pop() },
})
}
} else if (link.includes('assignment-submission')) {
router.push({
name: 'AssignmentSubmission',
params: {
submissionName: link[4],
assignmentID: link[3],
},
})
}
}
@@ -260,6 +266,9 @@ const isMention = (log) => {
if (log.subject.includes('mentioned you')) {
return true
}
if (log.subject.includes('comment')) {
return true
}
return false
}