diff --git a/frontend/src/stores/statuses.js b/frontend/src/stores/statuses.js index 402c0d67..040627bb 100644 --- a/frontend/src/stores/statuses.js +++ b/frontend/src/stores/statuses.js @@ -1,7 +1,8 @@ +import IndicatorIcon from '@/components/Icons/IndicatorIcon.vue' +import { capture } from '@/telemetry' import { defineStore } from 'pinia' import { createListResource } from 'frappe-ui' import { reactive, h } from 'vue' -import IndicatorIcon from '@/components/Icons/IndicatorIcon.vue' export const statusesStore = defineStore('crm-statuses', () => { let leadStatusesByName = reactive({}) @@ -103,6 +104,7 @@ export const statusesStore = defineStore('crm-statuses', () => { class: statusesByName[status].iconColorClass, }), onClick: () => { + capture('status_changed', { doctype, status }) action && action('status', statusesByName[status].name) }, })