chore: analytics

This commit is contained in:
Jannat Patel
2024-08-12 17:13:31 +05:30
parent b956c4e383
commit 703fafd6c3
19 changed files with 151 additions and 64 deletions

View File

@@ -23,6 +23,7 @@
import { Dialog, FormControl, createResource } from 'frappe-ui'
import { defineModel, reactive, watch } from 'vue'
import { createToast } from '@/utils/'
import { capture } from '@/telemetry'
const show = defineModel()
const outline = defineModel('outline')
@@ -91,6 +92,7 @@ const addChapter = (close) => {
}
},
onSuccess: (data) => {
capture('chapter_created')
chapterReference.submit(
{ name: data.name },
{