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 { contactsStore } from '@/stores/contacts'
|
||||
import { whatsappEnabled } from '@/composables/settings'
|
||||
import { capture } from '@/telemetry'
|
||||
import { Button, Tooltip, createResource } from 'frappe-ui'
|
||||
import { useElementVisibility } from '@vueuse/core'
|
||||
import {
|
||||
@ -552,6 +553,7 @@ onMounted(() => {
|
||||
|
||||
function sendTemplate(template) {
|
||||
showWhatsappTemplates.value = false
|
||||
capture('send_whatsapp_template', { doctype: props.doctype })
|
||||
createResource({
|
||||
url: 'crm.api.whatsapp.send_whatsapp_template',
|
||||
params: {
|
||||
|
||||
@ -75,7 +75,6 @@ const templates = createListResource({
|
||||
filters: { status: 'APPROVED', for_doctype: ['in', [props.doctype, '']] },
|
||||
orderBy: 'modified desc',
|
||||
pageLength: 99999,
|
||||
auto: true,
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user