chore: capture quiz creation and certificate creation for analytics
This commit is contained in:
@@ -464,7 +464,6 @@ const validateFields = () => {
|
||||
!['description', 'batch_details'].includes(key) &&
|
||||
typeof batch[key] === 'string'
|
||||
) {
|
||||
console.log(key)
|
||||
batch[key] = escapeHTML(batch[key])
|
||||
}
|
||||
})
|
||||
|
||||
@@ -144,9 +144,11 @@ import { computed, inject, onMounted, ref, watch } from 'vue'
|
||||
import { Plus } from 'lucide-vue-next'
|
||||
import { sessionStore } from '@/stores/session'
|
||||
import { escapeHTML } from '@/utils'
|
||||
import { useTelemetry } from 'frappe-ui/frappe'
|
||||
import EmptyState from '@/components/EmptyState.vue'
|
||||
|
||||
const { brand } = sessionStore()
|
||||
const { capture } = useTelemetry()
|
||||
const user = inject('$user')
|
||||
const dayjs = inject('$dayjs')
|
||||
const router = useRouter()
|
||||
@@ -216,6 +218,7 @@ const insertQuiz = (close) => {
|
||||
toast.success(__('Quiz created successfully'))
|
||||
close()
|
||||
title.value = ''
|
||||
capture('quiz_created')
|
||||
router.push({
|
||||
name: 'QuizForm',
|
||||
params: {
|
||||
|
||||
Reference in New Issue
Block a user