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

@@ -25,7 +25,7 @@
></div>
</div>
<div class="flex flex-col">
<div class="flex flex-col overflow-y-auto">
<div class="p-5">
<div class="flex items-center justify-between mb-4">
<div class="font-semibold text-ink-gray-9">

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
}

View File

@@ -628,7 +628,6 @@ export const validateFile = async (
console.error(msg)
return msg
}
console.log(file.type, fileType)
if (!file.type.startsWith(`${fileType}/`)) {
return error(__(`Only ${fileType} file is allowed.`))
}