diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index 670d3098..37e98b0e 100644 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -2256,10 +2256,7 @@ const AngularWorkflow = (defaultprops) => { } return - } else if ( - data.buttonType === "set_startnode" && - data.type !== "TRIGGER" - ) { + } else if (data.buttonType === "set_startnode" && data.type !== "TRIGGER") { const parentNode = cy.getElementById(data.attachedTo); if (parentNode !== null && parentNode !== undefined) { var oldstartnode = cy.getElementById(workflow.start); @@ -3844,7 +3841,11 @@ const AngularWorkflow = (defaultprops) => { if (!found) { addDeleteButton(event); - if (nodedata.type !== "TRIGGER") { + if (nodedata.type === "TRIGGER") { + if (nodedata.trigger_type === "SUBFLOW" || nodedata.trigger_type === "USERINPUT") { + addCopyButton(event); + } + } else { addCopyButton(event); addStartnodeButton(event); }