mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Node IO filter (#7503)
Co-authored-by: Omar Ajoue <krynble@gmail.com>
This commit is contained in:
@@ -65,6 +65,8 @@
|
||||
:sessionId="sessionId"
|
||||
:readOnly="readOnly || hasForeignCredential"
|
||||
:isProductionExecutionPreview="isProductionExecutionPreview"
|
||||
:isPaneActive="isInputPaneActive"
|
||||
@activatePane="activateInputPane"
|
||||
@linkRun="onLinkRunToInput"
|
||||
@unlinkRun="() => onUnlinkRun('input')"
|
||||
@runChange="onRunInputIndexChange"
|
||||
@@ -73,6 +75,7 @@
|
||||
@execute="onNodeExecute"
|
||||
@tableMounted="onInputTableMounted"
|
||||
@itemHover="onInputItemHover"
|
||||
@search="onSearch"
|
||||
/>
|
||||
</template>
|
||||
<template #output>
|
||||
@@ -85,12 +88,15 @@
|
||||
:isReadOnly="readOnly || hasForeignCredential"
|
||||
:blockUI="blockUi && isTriggerNode && !isExecutableTriggerNode"
|
||||
:isProductionExecutionPreview="isProductionExecutionPreview"
|
||||
:isPaneActive="isOutputPaneActive"
|
||||
@activatePane="activateOutputPane"
|
||||
@linkRun="onLinkRunToOutput"
|
||||
@unlinkRun="() => onUnlinkRun('output')"
|
||||
@runChange="onRunOutputIndexChange"
|
||||
@openSettings="openSettings"
|
||||
@tableMounted="onOutputTableMounted"
|
||||
@itemHover="onOutputItemHover"
|
||||
@search="onSearch"
|
||||
/>
|
||||
</template>
|
||||
<template #main>
|
||||
@@ -211,6 +217,9 @@ export default defineComponent({
|
||||
pinDataDiscoveryTooltipVisible: false,
|
||||
avgInputRowHeight: 0,
|
||||
avgOutputRowHeight: 0,
|
||||
isInputPaneActive: false,
|
||||
isOutputPaneActive: false,
|
||||
isPairedItemHoveringEnabled: true,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@@ -516,10 +525,7 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
onInputItemHover(e: { itemIndex: number; outputIndex: number } | null) {
|
||||
if (!this.inputNodeName) {
|
||||
return;
|
||||
}
|
||||
if (e === null) {
|
||||
if (e === null || !this.inputNodeName || !this.isPairedItemHoveringEnabled) {
|
||||
this.ndvStore.setHoveringItem(null);
|
||||
return;
|
||||
}
|
||||
@@ -533,7 +539,7 @@ export default defineComponent({
|
||||
this.ndvStore.setHoveringItem(item);
|
||||
},
|
||||
onOutputItemHover(e: { itemIndex: number; outputIndex: number } | null) {
|
||||
if (e === null || !this.activeNode) {
|
||||
if (e === null || !this.activeNode || !this.isPairedItemHoveringEnabled) {
|
||||
this.ndvStore.setHoveringItem(null);
|
||||
return;
|
||||
}
|
||||
@@ -717,6 +723,17 @@ export default defineComponent({
|
||||
onStopExecution() {
|
||||
this.$emit('stopExecution');
|
||||
},
|
||||
activateInputPane() {
|
||||
this.isInputPaneActive = true;
|
||||
this.isOutputPaneActive = false;
|
||||
},
|
||||
activateOutputPane() {
|
||||
this.isInputPaneActive = false;
|
||||
this.isOutputPaneActive = true;
|
||||
},
|
||||
onSearch(search: string) {
|
||||
this.isPairedItemHoveringEnabled = !search;
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user