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 [ {