fix: capture send whatsapp template event
This commit is contained in:
parent
83af97d20d
commit
f2a0a6734e
@ -437,6 +437,7 @@ import { globalStore } from '@/stores/global'
|
|||||||
import { usersStore } from '@/stores/users'
|
import { usersStore } from '@/stores/users'
|
||||||
import { contactsStore } from '@/stores/contacts'
|
import { contactsStore } from '@/stores/contacts'
|
||||||
import { whatsappEnabled } from '@/composables/settings'
|
import { whatsappEnabled } from '@/composables/settings'
|
||||||
|
import { capture } from '@/telemetry'
|
||||||
import { Button, Tooltip, createResource } from 'frappe-ui'
|
import { Button, Tooltip, createResource } from 'frappe-ui'
|
||||||
import { useElementVisibility } from '@vueuse/core'
|
import { useElementVisibility } from '@vueuse/core'
|
||||||
import {
|
import {
|
||||||
@ -552,6 +553,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
function sendTemplate(template) {
|
function sendTemplate(template) {
|
||||||
showWhatsappTemplates.value = false
|
showWhatsappTemplates.value = false
|
||||||
|
capture('send_whatsapp_template', { doctype: props.doctype })
|
||||||
createResource({
|
createResource({
|
||||||
url: 'crm.api.whatsapp.send_whatsapp_template',
|
url: 'crm.api.whatsapp.send_whatsapp_template',
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@ -75,7 +75,6 @@ const templates = createListResource({
|
|||||||
filters: { status: 'APPROVED', for_doctype: ['in', [props.doctype, '']] },
|
filters: { status: 'APPROVED', for_doctype: ['in', [props.doctype, '']] },
|
||||||
orderBy: 'modified desc',
|
orderBy: 'modified desc',
|
||||||
pageLength: 99999,
|
pageLength: 99999,
|
||||||
auto: true,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user