#118: Fixed webhook view issue
This commit is contained in:
@@ -261,7 +261,7 @@ func makePythoncode(swagger *openapi3.Swagger, name, url, method string, paramet
|
|||||||
url += f"&%s={%s}"`, query, query, query)
|
url += f"&%s={%s}"`, query, query, query)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Printf("No optional queries?")
|
//log.Printf("No optional queries?")
|
||||||
}
|
}
|
||||||
|
|
||||||
// api.Authentication.Parameters[0].Value = "BearerAuth"
|
// api.Authentication.Parameters[0].Value = "BearerAuth"
|
||||||
@@ -401,9 +401,7 @@ func makePythoncode(swagger *openapi3.Swagger, name, url, method string, paramet
|
|||||||
verifyAddin,
|
verifyAddin,
|
||||||
)
|
)
|
||||||
|
|
||||||
log.Printf(data)
|
//log.Printf(data)
|
||||||
|
|
||||||
//log.Printf("%s", data)
|
|
||||||
return functionname, data
|
return functionname, data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2001,9 +2001,9 @@ const AngularWorkflow = (props) => {
|
|||||||
position: newposition,
|
position: newposition,
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (data.trigger_type === "WEBHOOK") {
|
if (data.trigger_type === "WEBHOOK") {
|
||||||
// newAppData.status = "running"
|
newAppData.status = "running"
|
||||||
//}
|
}
|
||||||
|
|
||||||
// Can all the data be in here? hmm
|
// Can all the data be in here? hmm
|
||||||
const nodeToBeAdded = {
|
const nodeToBeAdded = {
|
||||||
@@ -2049,8 +2049,8 @@ const AngularWorkflow = (props) => {
|
|||||||
|
|
||||||
setWorkflow(workflow)
|
setWorkflow(workflow)
|
||||||
if (data.trigger_type === "WEBHOOK") {
|
if (data.trigger_type === "WEBHOOK") {
|
||||||
//newWebhook(newAppData)
|
newWebhook(newAppData)
|
||||||
//saveWorkflow(workflow)
|
saveWorkflow(workflow)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4331,42 +4331,14 @@ const AngularWorkflow = (props) => {
|
|||||||
setTriggerCronWrapper(e.target.value)
|
setTriggerCronWrapper(e.target.value)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div style={{marginTop: "20px", marginBottom: "7px", display: "flex"}}>
|
|
||||||
<div style={{width: "17px", height: "17px", borderRadius: 17 / 2, backgroundColor: "#f85a3e", marginRight: "10px"}}/>
|
|
||||||
<div style={{flex: "10"}}>
|
|
||||||
<b>Execution argument: </b>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<TextField
|
|
||||||
style={{backgroundColor: inputColor}}
|
|
||||||
InputProps={{
|
|
||||||
style:{
|
|
||||||
color: "white",
|
|
||||||
marginLeft: "5px",
|
|
||||||
maxWidth: "95%",
|
|
||||||
marginTop: "3px",
|
|
||||||
fontSize: "1em",
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
fullWidth
|
|
||||||
disabled
|
|
||||||
rows="6"
|
|
||||||
multiline
|
|
||||||
color="primary"
|
|
||||||
defaultValue={workflow.triggers[selectedTriggerIndex].parameters[1].value}
|
|
||||||
placeholder='{"example": {"json": "is cool"}}'
|
|
||||||
onBlur={(e) => {
|
|
||||||
setTriggerBodyWrapper(e.target.value)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Divider style={{marginTop: "20px", height: "1px", width: "100%", backgroundColor: "rgb(91, 96, 100)"}}/>
|
<Divider style={{marginTop: "20px", height: "1px", width: "100%", backgroundColor: "rgb(91, 96, 100)"}}/>
|
||||||
<div style={{marginTop: "20px", marginBottom: "7px", display: "flex"}}>
|
<div style={{marginTop: "20px", marginBottom: "7px", display: "flex"}}>
|
||||||
<Button style={{flex: "1",}} disabled={selectedTrigger.status === "running"} onClick={() => {
|
<Button variant="contained" style={{flex: "1",}} disabled={selectedTrigger.status === "running"} onClick={() => {
|
||||||
newWebhook(selectedTrigger)
|
newWebhook(selectedTrigger)
|
||||||
}} color="primary">
|
}} color="primary">
|
||||||
Start
|
Start
|
||||||
</Button>
|
</Button>
|
||||||
<Button style={{flex: "1",}} disabled={selectedTrigger.status !== "running"} onClick={() => {
|
<Button variant="contained" style={{flex: "1",}} disabled={selectedTrigger.status !== "running"} onClick={() => {
|
||||||
deleteWebhook(selectedTrigger, selectedTriggerIndex)
|
deleteWebhook(selectedTrigger, selectedTriggerIndex)
|
||||||
}} color="primary">
|
}} color="primary">
|
||||||
Stop
|
Stop
|
||||||
|
|||||||
Reference in New Issue
Block a user