fix: capture assignment event

This commit is contained in:
Shariq Ansari 2024-08-16 19:11:02 +05:30
parent accccc95b8
commit 7bbe62de15

View File

@ -80,6 +80,7 @@
import UserAvatar from '@/components/UserAvatar.vue' import UserAvatar from '@/components/UserAvatar.vue'
import Link from '@/components/Controls/Link.vue' import Link from '@/components/Controls/Link.vue'
import { usersStore } from '@/stores/users' import { usersStore } from '@/stores/users'
import { capture } from '@/telemetry'
import { Tooltip, call } from 'frappe-ui' import { Tooltip, call } from 'frappe-ui'
import { ref, computed, onMounted } from 'vue' import { ref, computed, onMounted } from 'vue'
@ -160,6 +161,7 @@ function updateAssignees() {
} }
if (addedAssignees.length) { if (addedAssignees.length) {
capture('assign_to', { doctype: props.doctype })
if (props.docs.size) { if (props.docs.size) {
call('frappe.desk.form.assign_to.add_multiple', { call('frappe.desk.form.assign_to.add_multiple', {
doctype: props.doctype, doctype: props.doctype,