mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat(core): Update LLM applications building support (no-changelog) (#7710)
extracted out of #7336 --------- Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com> Co-authored-by: Oleg Ivaniv <me@olegivaniv.com> Co-authored-by: Alex Grozav <alex@grozav.com>
This commit is contained in:
committed by
GitHub
parent
4a89504d54
commit
117962d473
@@ -8,6 +8,7 @@
|
||||
width="auto"
|
||||
append-to-body
|
||||
data-test-id="ndv"
|
||||
:data-has-output-connection="hasOutputConnection"
|
||||
>
|
||||
<n8n-tooltip
|
||||
placement="bottom-start"
|
||||
@@ -42,6 +43,8 @@
|
||||
:isDraggable="!isTriggerNode"
|
||||
:hasDoubleWidth="activeNodeType?.parameterPane === 'wide'"
|
||||
:nodeType="activeNodeType"
|
||||
:key="activeNode.name"
|
||||
@switchSelectedNode="onSwitchSelectedNode"
|
||||
@close="close"
|
||||
@init="onPanelsInit"
|
||||
@dragstart="onDragStart"
|
||||
@@ -275,6 +278,15 @@ export default defineComponent({
|
||||
workflow(): Workflow {
|
||||
return this.getCurrentWorkflow();
|
||||
},
|
||||
hasOutputConnection() {
|
||||
if (!this.activeNode) return false;
|
||||
const outgoingConnections = this.workflowsStore.outgoingConnectionsByNodeName(
|
||||
this.activeNode.name,
|
||||
) as INodeConnections;
|
||||
|
||||
// Check if there's at-least one output connection
|
||||
return (Object.values(outgoingConnections)?.[0]?.[0] ?? []).length > 0;
|
||||
},
|
||||
parentNodes(): string[] {
|
||||
if (this.activeNode) {
|
||||
return (
|
||||
@@ -634,6 +646,9 @@ export default defineComponent({
|
||||
nodeTypeSelected(nodeTypeName: string) {
|
||||
this.$emit('nodeTypeSelected', nodeTypeName);
|
||||
},
|
||||
async onSwitchSelectedNode(nodeTypeName: string) {
|
||||
this.$emit('switchSelectedNode', nodeTypeName);
|
||||
},
|
||||
async close() {
|
||||
if (this.isDragging) {
|
||||
return;
|
||||
@@ -739,6 +754,10 @@ export default defineComponent({
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// Hide notice(.ndv-connection-hint-notice) warning when node has output connection
|
||||
[data-has-output-connection='true'] .ndv-connection-hint-notice {
|
||||
display: none;
|
||||
}
|
||||
.ndv-wrapper {
|
||||
overflow: visible;
|
||||
margin-top: 0;
|
||||
|
||||
Reference in New Issue
Block a user