fix: capture layout builder event

This commit is contained in:
Shariq Ansari 2024-08-16 19:32:32 +05:30
parent 46e12bdda4
commit b8cde2a465
2 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,7 @@
import Fields from '@/components/Fields.vue'
import QuickEntryLayoutBuilder from '@/components/Settings/QuickEntryLayoutBuilder.vue'
import { useDebounceFn } from '@vueuse/core'
import { capture } from '@/telemetry'
import { Dialog, Badge, Switch, call, createResource } from 'frappe-ui'
import { ref, watch, onMounted, nextTick } from 'vue'
@ -122,6 +123,7 @@ function saveChanges() {
).then(() => {
loading.value = false
show.value = false
capture('quick_entry_layout_builder', { doctype: _doctype.value })
})
}
</script>

View File

@ -74,6 +74,7 @@ import Section from '@/components/Section.vue'
import SectionFields from '@/components/SectionFields.vue'
import SidePanelLayoutBuilder from '@/components/Settings/SidePanelLayoutBuilder.vue'
import { useDebounceFn } from '@vueuse/core'
import { capture } from '@/telemetry'
import { Dialog, Badge, Switch, call, createResource } from 'frappe-ui'
import { ref, watch, onMounted, nextTick } from 'vue'
@ -143,6 +144,7 @@ function saveChanges() {
).then(() => {
loading.value = false
show.value = false
capture('side_panel_layout_builder', { doctype: _doctype.value })
emit('reload')
})
}