diff --git a/packages/editor-ui/src/components/ExpressionEditModal.vue b/packages/editor-ui/src/components/ExpressionEditModal.vue index 08e3848c43..9fe4c17377 100644 --- a/packages/editor-ui/src/components/ExpressionEditModal.vue +++ b/packages/editor-ui/src/components/ExpressionEditModal.vue @@ -155,6 +155,7 @@ async function onDrop(expression: string, event: MouseEvent) { :mapping-enabled="!isReadOnly" :connection-type="NodeConnectionType.Main" pane-type="input" + context="modal" /> diff --git a/packages/editor-ui/src/components/RunDataSchema.vue b/packages/editor-ui/src/components/RunDataSchema.vue index 648aa16d4c..07d2d56ae1 100644 --- a/packages/editor-ui/src/components/RunDataSchema.vue +++ b/packages/editor-ui/src/components/RunDataSchema.vue @@ -34,6 +34,7 @@ type Props = { paneType: 'input' | 'output'; connectionType?: NodeConnectionType; search?: string; + context?: 'ndv' | 'modal'; }; type SchemaNode = { @@ -58,6 +59,7 @@ const props = withDefaults(defineProps(), { connectionType: NodeConnectionType.Main, search: '', mappingEnabled: false, + context: 'ndv', }); const draggingPath = ref(''); @@ -381,7 +383,7 @@ watch( :level="0" :parent="null" :pane-type="paneType" - :sub-key="snakeCase(currentNode.node.name)" + :sub-key="`${props.context}_${snakeCase(currentNode.node.name)}`" :mapping-enabled="mappingEnabled" :dragging-path="draggingPath" :distance-from-active="currentNode.depth" @@ -427,7 +429,7 @@ watch( :level="0" :parent="null" :pane-type="paneType" - :sub-key="`output_${nodeSchema.type}-0-0`" + :sub-key="`${props.context}_output_${nodeSchema.type}-0-0`" :mapping-enabled="mappingEnabled" :dragging-path="draggingPath" :node="node" diff --git a/packages/editor-ui/src/components/RunDataSchemaItem.vue b/packages/editor-ui/src/components/RunDataSchemaItem.vue index 18b1419329..43751ccb9d 100644 --- a/packages/editor-ui/src/components/RunDataSchemaItem.vue +++ b/packages/editor-ui/src/components/RunDataSchemaItem.vue @@ -5,6 +5,7 @@ import { checkExhaustive } from '@/utils/typeGuards'; import { shorten } from '@/utils/typesUtils'; import { getMappedExpression } from '@/utils/mappingUtils'; import TextWithHighlights from './TextWithHighlights.vue'; +import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; type Props = { schema: Schema; @@ -95,7 +96,7 @@ const getIconBySchemaType = (type: Schema['type']): string => { :data-depth="level" data-target="mappable" > - + {
- renders schema for data 1`] = `