Fixing some bugs

This commit is contained in:
Luis Fernando Molina committed 2021-09-28 13:40:35 +02:00
1 parent b20559057d
commit 14e7655df9
3 files changed
+24 -4

No files matched your search

@@ -18,6 +18,22 @@
"actionFunction": "payload.executeAction",
"actionProject": "Foundations"
},
{
"action": "Add UI Object",
"label": "Add Trading Engine",
"relatedUiObject": "Trading Engine",
"relatedUiObjectProject": "Algorithmic-Trading",
"actionFunction": "payload.executeAction",
"actionProject": "Foundations"
},
{
"action": "Add UI Object",
"label": "Add Trading System",
"relatedUiObject": "Trading System",
"relatedUiObjectProject": "Algorithmic-Trading",
"actionFunction": "payload.executeAction",
"actionProject": "Foundations"
},
{
"action": "Delete UI Object",
"askConfirmation": true,
@@ -27,21 +27,21 @@
"name": "tradingCurrent",
"type": "node",
"childType": "Trading Current",
"autoAdd": true,
"autoAdd": false,
"project": "Foundations"
},
{
"name": "tradingLast",
"type": "node",
"childType": "Trading Last",
"autoAdd": true,
"autoAdd": false,
"project": "Foundations"
},
{
"name": "exchangeOrders",
"type": "node",
"childType": "Exchange Orders",
"autoAdd": true,
"autoAdd": false,
"project": "Foundations"
}
]
@@ -756,7 +756,11 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() {
if (property.type === 'node') {
if (property.name !== previousPropertyName) {
if (node[property.name] === undefined) {
addUIObject(node, property.childType, rootNodes)
let currenAngleToParent = node.payload.floatingObject.angleToParent
node.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180
let uiObject = addUIObject(node, property.childType, rootNodes, property.project)
node.payload.floatingObject.angleToParent = currenAngleToParent
//uiObject.payload.floatingObject.angleToParent = currenAngleToParent
previousPropertyName = property.name
}
}