From 244b5e445ca052191f9a4b1f009cc71187e22f44 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Fri, 16 Jan 2026 15:59:16 +0530 Subject: [PATCH] fix: open course and batch from evaluation event modal --- frontend/src/components/Modals/Event.vue | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Modals/Event.vue b/frontend/src/components/Modals/Event.vue index 04804f49..365f0c61 100644 --- a/frontend/src/components/Modals/Event.vue +++ b/frontend/src/components/Modals/Event.vue @@ -22,7 +22,10 @@ -
+
{{ event.course_title }} @@ -30,7 +33,10 @@
-
+
{{ event.batch_title }} @@ -334,7 +340,7 @@ const certificateDetails = createResource({ } }, onError(err) { - certificate.template = defaultTemplate.data.value + certificate.template = defaultTemplate.data?.value }, auto: false, }) @@ -377,6 +383,16 @@ const openCertificate = (certificate) => { ) } +const openLink = (type, name) => { + let url = '' + if (type === 'course') { + url = `/lms/courses/${name}` + } else if (type === 'batch') { + url = `/lms/batches/${name}#students` + } + window.open(url, '_blank') +} + const statusOptions = computed(() => { return [ {