diff --git a/packages/editor-ui/src/components/CredentialCard.vue b/packages/editor-ui/src/components/CredentialCard.vue index 82e74c2e0fac0..b772c6e5c630e 100644 --- a/packages/editor-ui/src/components/CredentialCard.vue +++ b/packages/editor-ui/src/components/CredentialCard.vue @@ -23,7 +23,7 @@ const CREDENTIAL_LIST_ITEM_ACTIONS = { const props = withDefaults( defineProps<{ data: ICredentialsResponse; - readOnly: boolean; + readOnly?: boolean; }>(), { data: () => ({ diff --git a/packages/editor-ui/src/components/Projects/ProjectMoveResourceConfirmModal.vue b/packages/editor-ui/src/components/Projects/ProjectMoveResourceConfirmModal.vue index 962dbaeef16f9..454fe163cb6e2 100644 --- a/packages/editor-ui/src/components/Projects/ProjectMoveResourceConfirmModal.vue +++ b/packages/editor-ui/src/components/Projects/ProjectMoveResourceConfirmModal.vue @@ -7,6 +7,7 @@ import { useProjectsStore } from '@/stores/projects.store'; import Modal from '@/components/Modal.vue'; import { N8nCheckbox, N8nText } from 'n8n-design-system'; import { useToast } from '@/composables/useToast'; +import { useTelemetry } from '@/composables/useTelemetry'; const props = defineProps<{ modalName: string; @@ -21,6 +22,7 @@ const i18n = useI18n(); const toast = useToast(); const uiStore = useUIStore(); const projectsStore = useProjectsStore(); +const telemetry = useTelemetry(); const checks = ref([false, false]); const allChecked = computed(() => checks.value.every(Boolean)); @@ -43,6 +45,10 @@ const confirm = async () => { props.data.projectId, ); closeModal(); + telemetry.track(`User successfully moved ${props.data.resourceType}`, { + [`${props.data.resourceType}_id`]: props.data.resource.id, + project_from_type: projectsStore.currentProject?.type ?? projectsStore.personalProject?.type, + }); } catch (error) { toast.showError( error.message, diff --git a/packages/editor-ui/src/components/Projects/ProjectMoveResourceModal.vue b/packages/editor-ui/src/components/Projects/ProjectMoveResourceModal.vue index c8a8934f5f4ea..5a1255efa43df 100644 --- a/packages/editor-ui/src/components/Projects/ProjectMoveResourceModal.vue +++ b/packages/editor-ui/src/components/Projects/ProjectMoveResourceModal.vue @@ -1,5 +1,5 @@