Standarization and isMissingChildrenByType function added
This commit is contained in:
1 parent
6121a6d7f9
commit
cbdb422398
5 files changed
+62
-18
No files matched your search
@@ -123,7 +123,7 @@ function newFoundationsFunctionLibraryDataStorageFunctions() {
|
||||
/* We will filter out all the sessions that does not belong to the market we are in */
|
||||
let marketTradingTasks = UI.projects.foundations.utilities.meshes.findNodeInNodeMesh(session, 'Market Trading Tasks', undefined, true, false, true, false)
|
||||
if (node.payload.referenceParent.id !== marketTradingTasks.payload.referenceParent.id) { continue }
|
||||
if (UI.projects.foundations.utilities.children.isMissingChildren(node, session, true) === true) {
|
||||
if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, session, true) === true) {
|
||||
createSessionReference(node, session, 'Trading Session Reference')
|
||||
}
|
||||
}
|
||||
@@ -146,7 +146,7 @@ function newFoundationsFunctionLibraryDataStorageFunctions() {
|
||||
/* We will filter out all the sessions that does not belong to the market we are in */
|
||||
let marketLearningTasks = UI.projects.foundations.utilities.meshes.findNodeInNodeMesh(session, 'Market Learning Tasks', undefined, true, false, true, false)
|
||||
if (node.payload.referenceParent.id !== marketLearningTasks.payload.referenceParent.id) { continue }
|
||||
if (UI.projects.foundations.utilities.children.isMissingChildren(node, session, true) === true) {
|
||||
if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, session, true) === true) {
|
||||
createSessionReference(node, session, 'Learning Session Reference')
|
||||
}
|
||||
}
|
||||
@@ -177,7 +177,7 @@ function newFoundationsFunctionLibraryDataStorageFunctions() {
|
||||
|
||||
for (let i = 0; i < marketsArray.length; i++) {
|
||||
let market = marketsArray[i]
|
||||
if (UI.projects.foundations.utilities.children.isMissingChildren(node, market, true) === true) {
|
||||
if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, market, true) === true) {
|
||||
let marketDataProducts = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, newNodeType)
|
||||
marketDataProducts.payload.referenceParent = market
|
||||
}
|
||||
@@ -205,7 +205,7 @@ function newFoundationsFunctionLibraryDataStorageFunctions() {
|
||||
let cryptoExchanges = cryptoEcosystem.cryptoExchanges[j]
|
||||
for (let k = 0; k < cryptoExchanges.exchanges.length; k++) {
|
||||
let cryptoExchange = cryptoExchanges.exchanges[k]
|
||||
if (UI.projects.foundations.utilities.children.isMissingChildren(node, cryptoExchange, true) === true) {
|
||||
if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, cryptoExchange, true) === true) {
|
||||
let exchange = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, newNodeType)
|
||||
exchange.payload.referenceParent = cryptoExchange
|
||||
}
|
||||
@@ -238,7 +238,7 @@ function newFoundationsFunctionLibraryDataStorageFunctions() {
|
||||
if (rootNode.type === project + ' Project') {
|
||||
let projectDefinition = rootNode.projectDefinition
|
||||
if (projectDefinition !== undefined) {
|
||||
if (UI.projects.foundations.utilities.children.isMissingChildren(node, projectDefinition, true) === true) {
|
||||
if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, projectDefinition, true) === true) {
|
||||
let projectTasks = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, newNodeType, undefined, project)
|
||||
projectTasks.payload.referenceParent = projectDefinition
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user