From 622bdebb8003446dbe5f01d27f3a805569584205 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 2 Sep 2021 18:36:58 +0200 Subject: [PATCH 1/2] Governance final touches --- Projects/Governance/UI/Function-Libraries/AirdropProgram.js | 2 +- Projects/Governance/UI/Function-Libraries/ClaimsProgram.js | 2 +- Projects/Governance/UI/Function-Libraries/GithubProgram.js | 2 +- Projects/Governance/UI/Function-Libraries/StakingProgram.js | 2 +- Projects/Governance/UI/Utilities/BonusProgram.js | 2 +- Projects/Governance/UI/Utilities/DecendentProgram.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Projects/Governance/UI/Function-Libraries/AirdropProgram.js b/Projects/Governance/UI/Function-Libraries/AirdropProgram.js index 8b36e5fb7..f87c72699 100644 --- a/Projects/Governance/UI/Function-Libraries/AirdropProgram.js +++ b/Projects/Governance/UI/Function-Libraries/AirdropProgram.js @@ -107,7 +107,7 @@ function newGovernanceFunctionLibraryAirdropProgram() { ) { node.payload.airdropProgram.isActive = false userProfile.payload.uiObject.setErrorMessage( - "Airdrop Program: You need to setup this profile with the Profile Constructor, to access the Token Power of your account at the Blockchain.", + "Waiting for blockchain balance. It takes 6 seconds to load the balance of each profile, bacause you are using a free API provided by BSC Scan.", UI.projects.governance.globals.designer.SET_ERROR_COUNTER_FACTOR ) return diff --git a/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js b/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js index 6ec856aa8..80b03c473 100644 --- a/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js +++ b/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js @@ -489,7 +489,7 @@ function newGovernanceFunctionLibraryClaimsProgram() { node.payload.uiObject.percentageAngleOffset = 180 node.payload.uiObject.percentageAtAngle = true - node.payload.uiObject.setValue(programPowerText) + node.payload.uiObject.setValue(programPowerText, UI.projects.governance.globals.designer.SET_VALUE_COUNTER) if (percentage !== undefined) { node.payload.uiObject.setPercentage(percentage.toFixed(2), diff --git a/Projects/Governance/UI/Function-Libraries/GithubProgram.js b/Projects/Governance/UI/Function-Libraries/GithubProgram.js index 92711ecd4..8ff7a84d8 100644 --- a/Projects/Governance/UI/Function-Libraries/GithubProgram.js +++ b/Projects/Governance/UI/Function-Libraries/GithubProgram.js @@ -107,7 +107,7 @@ function newGovernanceFunctionLibraryGithubProgram() { ) { node.payload.githubProgram.isActive = false userProfile.payload.uiObject.setErrorMessage( - "Github Program: You need to setup this profile with the Profile Constructor, to access the Token Power of your account at the Blockchain.", + "Waiting for blockchain balance. It takes 6 seconds to load the balance of each profile, bacause you are using a free API provided by BSC Scan.", UI.projects.governance.globals.designer.SET_ERROR_COUNTER_FACTOR ) return diff --git a/Projects/Governance/UI/Function-Libraries/StakingProgram.js b/Projects/Governance/UI/Function-Libraries/StakingProgram.js index 4e8b94db5..d3b8a0263 100644 --- a/Projects/Governance/UI/Function-Libraries/StakingProgram.js +++ b/Projects/Governance/UI/Function-Libraries/StakingProgram.js @@ -107,7 +107,7 @@ function newGovernanceFunctionLibraryStakingProgram() { ) { node.payload.stakingProgram.isActive = false userProfile.payload.uiObject.setErrorMessage( - "Staking Program: You need to setup this profile with the Profile Constructor, to access the Token Power of your account at the Blockchain.", + "Waiting for blockchain balance. It takes 6 seconds to load the balance of each profile, bacause you are using a free API provided by BSC Scan.", UI.projects.governance.globals.designer.SET_ERROR_COUNTER_FACTOR ) return diff --git a/Projects/Governance/UI/Utilities/BonusProgram.js b/Projects/Governance/UI/Utilities/BonusProgram.js index 97c3c3659..5ef959426 100644 --- a/Projects/Governance/UI/Utilities/BonusProgram.js +++ b/Projects/Governance/UI/Utilities/BonusProgram.js @@ -102,7 +102,7 @@ function newGovernanceUtilitiesBonusProgram() { ) { node.payload[programPropertyName].isActive = false userProfile.payload.uiObject.setErrorMessage( - "Bonus Program: You need to setup this profile with the Profile Constructor, to access the Token Power of your account at the Blockchain.", + "Waiting for blockchain balance. It takes 6 seconds to load the balance of each profile, bacause you are using a free API provided by BSC Scan.", UI.projects.governance.globals.designer.SET_ERROR_COUNTER_FACTOR ) return diff --git a/Projects/Governance/UI/Utilities/DecendentProgram.js b/Projects/Governance/UI/Utilities/DecendentProgram.js index 7b0b57a30..3f604e612 100644 --- a/Projects/Governance/UI/Utilities/DecendentProgram.js +++ b/Projects/Governance/UI/Utilities/DecendentProgram.js @@ -169,7 +169,7 @@ function newGovernanceUtilitiesDecendentProgram() { ) { node.payload[programPropertyName].isActive = false userProfile.payload.uiObject.setErrorMessage( - "Decendent Program: You need to setup this profile with the Profile Constructor, to access the Token Power of your account at the Blockchain.", + "Waiting for blockchain balance. It takes 6 seconds to load the balance of each profile, bacause you are using a free API provided by BSC Scan.", UI.projects.governance.globals.designer.SET_ERROR_COUNTER_FACTOR ) return From a0a7e52edcffca7e1fddf41417731543991bb52f Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 2 Sep 2021 19:00:21 +0200 Subject: [PATCH 2/2] Governance Bug Fixed: No resizing Docs and Gov tab. --- .../Foundations/UI/Spaces/Charting-Space/ChartingSpace.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Projects/Foundations/UI/Spaces/Charting-Space/ChartingSpace.js b/Projects/Foundations/UI/Spaces/Charting-Space/ChartingSpace.js index 3fe3f38f4..4694622d6 100644 --- a/Projects/Foundations/UI/Spaces/Charting-Space/ChartingSpace.js +++ b/Projects/Foundations/UI/Spaces/Charting-Space/ChartingSpace.js @@ -186,7 +186,9 @@ function newFoundationsChartingSpace() { } function resize() { - thisObject.viewport.resize() + if (thisObject.viewport !== undefined) { + thisObject.viewport.resize() + } thisObject.container.frame.width = browserCanvas.width thisObject.container.frame.height = COCKPIT_SPACE_POSITION }