diff --git a/Projects/Superalgos/Schemas/AppSchema.json b/Projects/Superalgos/Schemas/AppSchema.json index 435e9d563..d7bbd0979 100644 --- a/Projects/Superalgos/Schemas/AppSchema.json +++ b/Projects/Superalgos/Schemas/AppSchema.json @@ -69,7 +69,8 @@ "addLeftIcons": true, "isPinned": false, "level": 2, - "propertyNameAtParent": "projectDefinition" + "propertyNameAtParent": "projectDefinition", + "icon": "bitcoin" }, { "type": "Spaces", @@ -15898,7 +15899,7 @@ "compatibleTypes": "->Crypto Exchange->" }, "chainAttachesTo": { - "compatibleTypes": "->Data Mining->" + "compatibleTypes": "->Project Data Tasks->" }, "alternativeIcons": "Use Reference Parent", "title": [ @@ -16058,7 +16059,7 @@ ] }, { - "type": "Data Mining", + "type": "Project Data Tasks", "menuItems": [ { "action": "Run All Exchange Data Tasks", @@ -16105,6 +16106,77 @@ "actionFunction": "payload.executeAction" } ], + "title": [ + "Use Reference Parent" + ], + "alternativeIcons": "Use Reference Parent Parent", + "addLeftIcons": true, + "level": 2, + "referenceAttachesTo": { + "compatibleTypes": "->Project Definition->" + }, + "chainAttachesTo": { + "compatibleTypes": "->Data Mining->" + }, + "propertyNameAtParent": "projectDataTasks", + "properties": [ + { + "name": "exchangeDataTasks", + "type": "array", + "childType": "Exchange Data Tasks", + "monitorChildrenRunning": true + } + ], + "icon": "bitcoin" + }, + { + "type": "Data Mining", + "menuItems": [ + { + "action": "Run All Project Data Tasks", + "label": "Run All Project Data Tasks", + "askConfirmation": true, + "confirmationLabel": "Confirm to Run", + "workDoneLabel": "Run Request Sent", + "iconPathOn": "run", + "iconPathOff": "run", + "actionFunction": "payload.executeAction" + }, + { + "action": "Stop All Project Data Tasks", + "label": "Stop All Project Data Tasks", + "askConfirmation": true, + "confirmationLabel": "Confirm to Stop", + "workDoneLabel": "Stop Request Sent", + "iconPathOn": "stop", + "iconPathOff": "stop", + "actionFunction": "payload.executeAction" + }, + { + "action": "Add UI Object", + "label": "Add Project Data Tasks", + "relatedUiObject": "Project Data Tasks", + "actionFunction": "payload.executeAction" + }, + { + "action": "Add Missing Project Data Tasks", + "label": "Add Missing Projects", + "askConfirmation": true, + "confirmationLabel": "Confirm to Proceed", + "workDoneLabel": "Done", + "relatedUiObject": "Project Data Tasks", + "actionFunction": "payload.executeAction" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete", + "iconPathOff": "delete", + "actionFunction": "payload.executeAction" + } + ], "addLeftIcons": true, "level": 2, "chainAttachesTo": { @@ -16113,9 +16185,9 @@ "propertyNameAtParent": "dataMining", "properties": [ { - "name": "exchangeDataTasks", + "name": "projectDataTasks", "type": "array", - "childType": "Exchange Data Tasks", + "childType": "Project Data Tasks", "monitorChildrenRunning": true } ] diff --git a/Projects/Superalgos/Spaces/Floating-Space/UiObject.js b/Projects/Superalgos/Spaces/Floating-Space/UiObject.js index f1af4cd7b..67014d995 100644 --- a/Projects/Superalgos/Spaces/Floating-Space/UiObject.js +++ b/Projects/Superalgos/Spaces/Floating-Space/UiObject.js @@ -1201,6 +1201,15 @@ function newUiObject() { } } } + if (nodeDefinition.alternativeIcons === 'Use Reference Parent Parent') { + if (thisObject.payload.node.payload.referenceParent !== undefined) { + if (thisObject.payload.node.payload.referenceParent.payload !== undefined) { + if (thisObject.payload.node.payload.referenceParent.payload.parentNode !== undefined) { + nodeToUse = thisObject.payload.node.payload.referenceParent.payload.parentNode + } + } + } + } nodeDefinition = getNodeDefinition(nodeToUse) let config = nodeToUse.config if (config !== undefined && (Array.isArray(nodeDefinition.alternativeIcons) === true)) {