Bug Fixing and missing stuff

This commit is contained in:
Luis Fernando Molina committed 2019-07-16 20:06:36 +02:00
1 parent 02c471c44b
commit 5206f41fb4
6 files changed
+35 -4

No files matched your search

@@ -206,6 +206,12 @@ function newNodeChildren () {
response.childIndex = response.childrenCount
}
}
if (parentNode.openExecution !== undefined) {
response.childrenCount++
if (parentNode.openExecution.id === childNode.id) {
response.childIndex = response.childrenCount
}
}
return response
}
@@ -234,6 +240,12 @@ function newNodeChildren () {
childrenCount: 0,
childIndex: undefined
}
if (parentNode.closeExecution !== undefined) {
response.childrenCount++
if (parentNode.closeExecution.id === childNode.id) {
response.childIndex = response.childrenCount
}
}
return response
}
@@ -194,6 +194,9 @@ function newPartsFromNodes () {
if (node.initialDefinition !== undefined) {
createPartFromNode(node.initialDefinition, stage, stage)
}
if (node.openExecution !== undefined) {
createPartFromNode(node.openExecution, stage, stage)
}
return
}
case 'Manage Stage': {
@@ -211,6 +214,10 @@ function newPartsFromNodes () {
case 'Close Stage': {
let stage = node
createPart('Close Stage', stage.name, stage, parentNode, chainParent, 'Close Stage')
if (node.closeExecution !== undefined) {
createPartFromNode(node.closeExecution, stage, stage)
}
return
}
case 'Strategy': {
@@ -207,7 +207,8 @@ function newProtocolNode () {
type: node.type,
subType: node.subType,
name: node.name,
initialDefinition: getProtocolNode(node.initialDefinition)
initialDefinition: getProtocolNode(node.initialDefinition),
openExecution: getProtocolNode(node.openExecution)
}
return stage
}
@@ -225,7 +226,8 @@ function newProtocolNode () {
let stage = {
type: node.type,
subType: node.subType,
name: node.name
name: node.name,
closeExecution: getProtocolNode(node.closeExecution)
}
return stage
}
@@ -245,6 +245,7 @@ function newStringifyNode () {
subType: node.subType,
name: node.name,
initialDefinition: prepareForStringify(node.initialDefinition),
openExecution: prepareForStringify(node.openExecution),
savedPayload: getSavedPayload(node)
}
return stage
@@ -267,6 +268,7 @@ function newStringifyNode () {
type: node.type,
subType: node.subType,
name: node.name,
closeExecution: prepareForStringify(node.closeExecution),
savedPayload: getSavedPayload(node)
}
return stage