1
0
forked from test/crm

fix: capture send whatsapp template event

This commit is contained in:
Shariq Ansari 2024-08-16 20:32:12 +05:30
parent 83af97d20d
commit f2a0a6734e
2 changed files with 2 additions and 1 deletions

View File

@ -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: {

View File

@ -75,7 +75,6 @@ const templates = createListResource({
filters: { status: 'APPROVED', for_doctype: ['in', [props.doctype, '']] },
orderBy: 'modified desc',
pageLength: 99999,
auto: true,
})
onMounted(() => {