mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
feat: Enable code capture in ai transform node (no-changelog) (#11241)
This commit is contained in:
@@ -40,6 +40,7 @@ import { hasExpressionMapping, isValueExpression } from '@/utils/nodeTypesUtils'
|
||||
import { isResourceLocatorValue } from '@/utils/typeGuards';
|
||||
|
||||
import {
|
||||
AI_TRANSFORM_NODE_TYPE,
|
||||
APP_MODALS_ELEMENT_ID,
|
||||
CORE_NODES_CATEGORY,
|
||||
CUSTOM_API_CALL_KEY,
|
||||
@@ -541,6 +542,13 @@ const showDragnDropTip = computed(
|
||||
ndvStore.isInputParentOfActiveNode,
|
||||
);
|
||||
|
||||
const shouldCaptureForPosthog = computed(() => {
|
||||
if (node.value?.type) {
|
||||
return [AI_TRANSFORM_NODE_TYPE].includes(node.value?.type);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
function isRemoteParameterOption(option: INodePropertyOptions) {
|
||||
return remoteParameterOptionsKeys.value.includes(option.name);
|
||||
}
|
||||
@@ -1124,6 +1132,7 @@ onUpdated(async () => {
|
||||
:model-value="modelValueString"
|
||||
:is-read-only="isReadOnly"
|
||||
:rows="editorRows"
|
||||
:posthog-capture="shouldCaptureForPosthog"
|
||||
fill-parent
|
||||
@update:model-value="valueChangedDebounced"
|
||||
/>
|
||||
@@ -1223,6 +1232,7 @@ onUpdated(async () => {
|
||||
:model-value="modelValueString"
|
||||
:is-read-only="isReadOnly || editorIsReadOnly"
|
||||
:rows="editorRows"
|
||||
:posthog-capture="shouldCaptureForPosthog"
|
||||
@update:model-value="valueChangedDebounced"
|
||||
>
|
||||
<template #suffix>
|
||||
|
||||
Reference in New Issue
Block a user