Status Labeling Improved
This commit is contained in:
1 parent
9eb2d25c3f
commit
af49f70dd4
3 files changed
+5
-5
No files matched your search
@@ -272,12 +272,12 @@ function newGovernanceFunctionLibraryTokenPower() {
|
||||
if (node.type === 'User Profile') {
|
||||
|
||||
let incomingPower = node.payload.tokenPower - node.payload.blockchainTokens
|
||||
const ownPowerText = parseFloat(node.payload.blockchainTokens.toFixed(2)).toLocaleString('en') + ' ' + 'Own Power'
|
||||
const incomingPowerText = parseFloat(incomingPower.toFixed(2)).toLocaleString('en') + ' ' + 'Incoming Power'
|
||||
const ownPowerText = parseFloat(node.payload.blockchainTokens.toFixed(2)).toLocaleString('en') + ' ' + 'Blockchain Power'
|
||||
const incomingPowerText = parseFloat(incomingPower.toFixed(2)).toLocaleString('en') + ' ' + 'Incoming Delegated Power'
|
||||
|
||||
node.payload.uiObject.valueAngleOffset = 0
|
||||
node.payload.uiObject.valueAtAngle = false
|
||||
node.payload.uiObject.setStatus(ownPowerText + ' - ' + incomingPowerText)
|
||||
node.payload.uiObject.setStatus(ownPowerText + ' + ' + incomingPowerText)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
@@ -429,7 +429,7 @@ function newGovernanceFunctionLibraryVotingProgram() {
|
||||
node.payload.uiObject.statusAngleOffset = 0
|
||||
node.payload.uiObject.statusAtAngle = false
|
||||
|
||||
node.payload.uiObject.setStatus(ownPowerText + ' Own Power' + ' - ' + incomingPowerText + ' Incoming Power' + '')
|
||||
node.payload.uiObject.setStatus(ownPowerText + ' Own Power' + ' + ' + incomingPowerText + ' Incoming Voting Power')
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -345,7 +345,7 @@ function newFoundationsUtilitiesDecendentProgram() {
|
||||
node.payload.uiObject.statusAngleOffset = 0
|
||||
node.payload.uiObject.statusAtAngle = false
|
||||
|
||||
node.payload.uiObject.setStatus(ownPowerText + ' Own Power' + ' - ' + incomingPowerText + ' Incoming Power' + '')
|
||||
node.payload.uiObject.setStatus(ownPowerText + ' Own Power' + ' + ' + incomingPowerText + ' Incoming ' + programPowerName)
|
||||
}
|
||||
if (node.tokensAwarded !== undefined && node.tokensAwarded.payload !== undefined) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user