fix: capture note/task/email_template creation
This commit is contained in:
parent
3ed038ef4a
commit
f971178750
@ -96,6 +96,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { capture } from '@/telemetry'
|
||||||
import { Checkbox, Select, TextEditor, call } from 'frappe-ui'
|
import { Checkbox, Select, TextEditor, call } from 'frappe-ui'
|
||||||
import { ref, nextTick, watch } from 'vue'
|
import { ref, nextTick, watch } from 'vue'
|
||||||
|
|
||||||
@ -171,7 +172,10 @@ async function callInsertDoc() {
|
|||||||
..._emailTemplate.value,
|
..._emailTemplate.value,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
doc.name && handleEmailTemplateUpdate(doc)
|
if (doc.name) {
|
||||||
|
capture('email_template_created', { email_template: doc.name })
|
||||||
|
handleEmailTemplateUpdate(doc)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleEmailTemplateUpdate(doc) {
|
function handleEmailTemplateUpdate(doc) {
|
||||||
|
|||||||
@ -66,6 +66,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import ArrowUpRightIcon from '@/components/Icons/ArrowUpRightIcon.vue'
|
import ArrowUpRightIcon from '@/components/Icons/ArrowUpRightIcon.vue'
|
||||||
|
import { capture } from '@/telemetry'
|
||||||
import { TextEditor, call } from 'frappe-ui'
|
import { TextEditor, call } from 'frappe-ui'
|
||||||
import { ref, nextTick, watch } from 'vue'
|
import { ref, nextTick, watch } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
@ -124,6 +125,7 @@ async function updateNote() {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
if (d.name) {
|
if (d.name) {
|
||||||
|
capture('note_created', { note: d.name })
|
||||||
notes.value?.reload()
|
notes.value?.reload()
|
||||||
emit('after', d, true)
|
emit('after', d, true)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -118,6 +118,7 @@ import UserAvatar from '@/components/UserAvatar.vue'
|
|||||||
import Link from '@/components/Controls/Link.vue'
|
import Link from '@/components/Controls/Link.vue'
|
||||||
import { taskStatusOptions, taskPriorityOptions } from '@/utils'
|
import { taskStatusOptions, taskPriorityOptions } from '@/utils'
|
||||||
import { usersStore } from '@/stores/users'
|
import { usersStore } from '@/stores/users'
|
||||||
|
import { capture } from '@/telemetry'
|
||||||
import { TextEditor, Dropdown, Tooltip, call, DateTimePicker } from 'frappe-ui'
|
import { TextEditor, Dropdown, Tooltip, call, DateTimePicker } from 'frappe-ui'
|
||||||
import { ref, watch, nextTick, onMounted } from 'vue'
|
import { ref, watch, nextTick, onMounted } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
@ -199,6 +200,7 @@ async function updateTask() {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
if (d.name) {
|
if (d.name) {
|
||||||
|
capture('task_created', { task: d.name })
|
||||||
tasks.value.reload()
|
tasks.value.reload()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user