feat(editor): Add plus handle design with ability to add connected nodes in new canvas (no-changelog) (#10097)

This commit is contained in:
Alex Grozav
2024-07-18 19:01:14 +03:00
committed by GitHub
parent 7a135df768
commit 11db5a5b51
29 changed files with 665 additions and 369 deletions

View File

@@ -560,6 +560,16 @@ function onUpdateNodeParameters(id: string, parameters: Record<string, unknown>)
setNodeParameters(id, parameters);
}
function onClickNodeAdd(source: string, sourceHandle: string) {
nodeCreatorStore.openNodeCreatorForConnectingNode({
connection: {
source,
sourceHandle,
},
eventSource: NODE_CREATOR_OPEN_SOURCES.PLUS_ENDPOINT,
});
}
/**
* Credentials
*/
@@ -1248,6 +1258,7 @@ onBeforeUnmount(() => {
@update:node:enabled="onToggleNodeDisabled"
@update:node:name="onOpenRenameNodeModal"
@update:node:parameters="onUpdateNodeParameters"
@click:node:add="onClickNodeAdd"
@run:node="onRunWorkflowToNode"
@delete:node="onDeleteNode"
@create:connection="onCreateConnection"