Added copy button for subflow and user input
This commit is contained in:
@@ -2256,10 +2256,7 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
} else if (
|
} else if (data.buttonType === "set_startnode" && data.type !== "TRIGGER") {
|
||||||
data.buttonType === "set_startnode" &&
|
|
||||||
data.type !== "TRIGGER"
|
|
||||||
) {
|
|
||||||
const parentNode = cy.getElementById(data.attachedTo);
|
const parentNode = cy.getElementById(data.attachedTo);
|
||||||
if (parentNode !== null && parentNode !== undefined) {
|
if (parentNode !== null && parentNode !== undefined) {
|
||||||
var oldstartnode = cy.getElementById(workflow.start);
|
var oldstartnode = cy.getElementById(workflow.start);
|
||||||
@@ -3844,7 +3841,11 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
if (!found) {
|
if (!found) {
|
||||||
addDeleteButton(event);
|
addDeleteButton(event);
|
||||||
|
|
||||||
if (nodedata.type !== "TRIGGER") {
|
if (nodedata.type === "TRIGGER") {
|
||||||
|
if (nodedata.trigger_type === "SUBFLOW" || nodedata.trigger_type === "USERINPUT") {
|
||||||
|
addCopyButton(event);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
addCopyButton(event);
|
addCopyButton(event);
|
||||||
addStartnodeButton(event);
|
addStartnodeButton(event);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user