Added default start node to new workflows
This commit is contained in:
@@ -411,7 +411,6 @@ func generateYaml(swagger *openapi3.Swagger, newmd5 string) (*openapi3.Swagger,
|
|||||||
//log.Printf("%s", j)
|
//log.Printf("%s", j)
|
||||||
api.SmallImage = string(j)
|
api.SmallImage = string(j)
|
||||||
api.LargeImage = string(j)
|
api.LargeImage = string(j)
|
||||||
log.Printf("Set images!")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+54
-10
File diff suppressed because one or more lines are too long
@@ -262,7 +262,7 @@ const AngularWorkflow = (props) => {
|
|||||||
const abortExecution = () => {
|
const abortExecution = () => {
|
||||||
setExecutionRunning(false)
|
setExecutionRunning(false)
|
||||||
|
|
||||||
alert.success("Aborting execution")
|
alert.info("Aborting execution")
|
||||||
fetch(globalUrl+"/api/v1/workflows/"+props.match.params.key+"/executions/"+executionRequest.execution_id+"/abort", {
|
fetch(globalUrl+"/api/v1/workflows/"+props.match.params.key+"/executions/"+executionRequest.execution_id+"/abort", {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
@@ -274,7 +274,9 @@ const AngularWorkflow = (props) => {
|
|||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.status !== 200) {
|
if (response.status !== 200) {
|
||||||
console.log("Status not 200 for WORKFLOW EXECUTION :O!")
|
console.log("Status not 200 for WORKFLOW EXECUTION :O!")
|
||||||
}
|
} else {
|
||||||
|
alert.success("Execution aborted")
|
||||||
|
}
|
||||||
|
|
||||||
return response.json()
|
return response.json()
|
||||||
})
|
})
|
||||||
@@ -657,7 +659,13 @@ const AngularWorkflow = (props) => {
|
|||||||
.then((responseJson) => {
|
.then((responseJson) => {
|
||||||
if (!responseJson.success) {
|
if (!responseJson.success) {
|
||||||
alert.error("Failed to start: "+responseJson.reason)
|
alert.error("Failed to start: "+responseJson.reason)
|
||||||
|
setExecutionRunning(false)
|
||||||
|
setExecutionRequestStarted(false)
|
||||||
stop()
|
stop()
|
||||||
|
|
||||||
|
for (var i = 0; i < curelements.length; i++) {
|
||||||
|
curelements[i].removeClass("not-executing-highlight")
|
||||||
|
}
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
setExecutionRunning(true)
|
setExecutionRunning(true)
|
||||||
@@ -4482,11 +4490,13 @@ const AngularWorkflow = (props) => {
|
|||||||
<div style={{ marginTop: "auto", marginBottom: "auto", marginRight: 15, }}>
|
<div style={{ marginTop: "auto", marginBottom: "auto", marginRight: 15, }}>
|
||||||
{timestamp}
|
{timestamp}
|
||||||
</div>
|
</div>
|
||||||
<Tooltip color="primary" title={resultsLength+" actions ran"} placement="top">
|
{data.workflow.actions !== null ?
|
||||||
<div style={{marginRight: 10, marginTop: "auto", marginBottom: "auto",}}>
|
<Tooltip color="primary" title={resultsLength+" actions ran"} placement="top">
|
||||||
{resultsLength}/{data.workflow.actions.length}
|
<div style={{marginRight: 10, marginTop: "auto", marginBottom: "auto",}}>
|
||||||
</div>
|
{resultsLength}/{data.workflow.actions.length}
|
||||||
</Tooltip>
|
</div>
|
||||||
|
</Tooltip>
|
||||||
|
: null}
|
||||||
</div>
|
</div>
|
||||||
<Tooltip title={"Inspect execution"} placement="top">
|
<Tooltip title={"Inspect execution"} placement="top">
|
||||||
<KeyboardArrowRightIcon style={{marginTop: "auto", marginBottom: "auto"}}/>
|
<KeyboardArrowRightIcon style={{marginTop: "auto", marginBottom: "auto"}}/>
|
||||||
|
|||||||
Reference in New Issue
Block a user