Fixed webhook

This commit is contained in:
frikky
2020-05-14 10:43:05 +02:00
parent 809a1824ff
commit 33f6d85e09
3 changed files with 31 additions and 12 deletions
+8 -3
View File
@@ -801,7 +801,6 @@ const AngularWorkflow = (props) => {
workflow.start = node.data('id')
setWorkflow(workflow)
}
}
const onEdgeRemoved = (event) => {
@@ -1642,8 +1641,6 @@ const AngularWorkflow = (props) => {
}
newNodeId = uuid.v4()
console.log(data)
const newposition = {
"x": e.pageX-cycontainer.offsetLeft,
"y": e.pageY-cycontainer.offsetTop,
@@ -1671,6 +1668,10 @@ const AngularWorkflow = (props) => {
position: newposition,
}
if (data.trigger_type === "WEBHOOK") {
newAppData.status = "running"
}
// Can all the data be in here? hmm
const nodeToBeAdded = {
group: "nodes",
@@ -1714,6 +1715,10 @@ const AngularWorkflow = (props) => {
}
setWorkflow(workflow)
if (data.trigger_type === "WEBHOOK") {
newWebhook(newAppData)
saveWorkflow(workflow)
}
}
}
}