From dae1164d3c65531e90d7ff414b8ba952b86d0f7f Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 27 Jul 2021 14:33:56 +0200 Subject: [PATCH] github stars implemented --- .../UI/Function-Libraries/GithubProgram.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Projects/Governance/UI/Function-Libraries/GithubProgram.js b/Projects/Governance/UI/Function-Libraries/GithubProgram.js index 69aec925d..6f24a6fab 100644 --- a/Projects/Governance/UI/Function-Libraries/GithubProgram.js +++ b/Projects/Governance/UI/Function-Libraries/GithubProgram.js @@ -126,7 +126,7 @@ function newGovernanceFunctionLibraryGithubProgram() { node.payload.githubProgram.isActive = true } else { node.payload.githubProgram.isActive = false - } + } } function distributeProgram(programNode) { @@ -185,6 +185,16 @@ function newGovernanceFunctionLibraryGithubProgram() { node.tokensAwarded.payload.uiObject.valueAtAngle = false node.tokensAwarded.payload.uiObject.setValue(tokensAwardedText + ' SA Tokens') + + node.tokensAwarded.payload.uiObject.statusAngleOffset = 0 + node.tokensAwarded.payload.uiObject.statusAtAngle = false + + let extraText = '' + if (node.payload.githubProgram.hasStar === true) { + extraText = ' 1 Star' + } + + node.tokensAwarded.payload.uiObject.setStatus('From' + extraText) } } }