From 69c59eddc38e397f7bd5b49052131e568f7c4229 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 7 Jun 2021 17:14:33 +0200 Subject: [PATCH] Bug fixed with attaching --- .../Schemas/App-Schema/asset-contribution-claim.json | 5 +++-- .../Governance/Schemas/App-Schema/governance-project.json | 3 ++- Projects/Governance/UI/Function-Libraries/Claims.js | 2 +- Projects/Superalgos/UI/Spaces/Floating-Space/UiObject.js | 4 +++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Projects/Governance/Schemas/App-Schema/asset-contribution-claim.json b/Projects/Governance/Schemas/App-Schema/asset-contribution-claim.json index 2ea24f0ce..5dfa1dbfc 100644 --- a/Projects/Governance/Schemas/App-Schema/asset-contribution-claim.json +++ b/Projects/Governance/Schemas/App-Schema/asset-contribution-claim.json @@ -19,8 +19,9 @@ } ], "title": [ - "Use Reference Parent", - "Use Reference Parent Parent" + "Use Reference Parent Parent Parent", + "Use Reference Parent Parent", + "Use Reference Parent" ], "editors": { "config": true diff --git a/Projects/Governance/Schemas/App-Schema/governance-project.json b/Projects/Governance/Schemas/App-Schema/governance-project.json index 84b1726eb..07c81e7f2 100644 --- a/Projects/Governance/Schemas/App-Schema/governance-project.json +++ b/Projects/Governance/Schemas/App-Schema/governance-project.json @@ -54,5 +54,6 @@ "project": "Superalgos", "autoAdd": true } - ] + ], + "icon": "Governance Project" } \ No newline at end of file diff --git a/Projects/Governance/UI/Function-Libraries/Claims.js b/Projects/Governance/UI/Function-Libraries/Claims.js index 934b231eb..7a6e5aaf7 100644 --- a/Projects/Governance/UI/Function-Libraries/Claims.js +++ b/Projects/Governance/UI/Function-Libraries/Claims.js @@ -167,7 +167,7 @@ function newGovernanceFunctionLibraryClaims() { let votesRatio = node.payload.referenceParent.payload.votes / node.payload.referenceParent.payload.claimsVotes if (votesRatio > 1) { votesRatio = 1 } /* - Share Count means the amount to claims pointing to the same potential tokens reward. + Share Count means the amount to claims pointing to the same potential tokens reward. */ let shareCount = node.payload.referenceParent.payload.claimsCount let sharePercentage = node.payload.votes * 100 / node.payload.referenceParent.payload.claimsVotes diff --git a/Projects/Superalgos/UI/Spaces/Floating-Space/UiObject.js b/Projects/Superalgos/UI/Spaces/Floating-Space/UiObject.js index 3b500eec7..321198b5b 100644 --- a/Projects/Superalgos/UI/Spaces/Floating-Space/UiObject.js +++ b/Projects/Superalgos/UI/Spaces/Floating-Space/UiObject.js @@ -469,6 +469,7 @@ function newUiObject() { let nearby = nearbyFloatingObjects[i] let distance = nearby[0] let floatingObject = nearby[1] + if (floatingObject.payload === undefined) { continue } let nearbyNode = floatingObject.payload.node if (compatibleTypes.indexOf('->' + nearbyNode.type + '->') >= 0) { /* Discard App Schema defined objects with busy coonection ports */ @@ -614,6 +615,7 @@ function newUiObject() { let nearby = nearbyFloatingObjects[i] let distance = nearby[0] let floatingObject = nearby[1] + if (floatingObject.payload === undefined) { continue } let nearbyNode = floatingObject.payload.node if (compatibleTypes.indexOf('->' + nearbyNode.type + '->') >= 0 || compatibleTypes === "->*Any Node*->") { if (schemaDocument.referencingRules.incompatibleTypes !== undefined) { @@ -1891,7 +1893,7 @@ function newUiObject() { y: position.y } labelPoint.x = labelPoint.x + radius * 7 / 3 * Math.cos(toRadians(thisObject.payload.angle + thisObject.valueAngleOffset)) - labelPoint.y = labelPoint.y + radius * 7 / 3 * Math.sin(toRadians(thisObject.payload.angle + thisObject.valueAngleOffset)) + lineSeparator * 1 + labelPoint.y = labelPoint.y + radius * 7 / 3 * Math.sin(toRadians(thisObject.payload.angle + thisObject.valueAngleOffset)) + lineSeparator * 1 } else { if (thisObject.isOnFocus === true) { labelPoint = {