Bug fixed with saving workspace

This commit is contained in:
Luis Fernando Molina committed 2020-11-17 12:06:25 +01:00
1 parent 759ff66c9e
commit 8579932b12
3 files changed
+13 -5

No files matched your search

@@ -600,6 +600,9 @@
"actionFunction": "payload.executeAction"
}
],
"referenceAttachesTo": {
"compatibleTypes": "->Network Node->"
},
"editors": {
"config": true
},
@@ -110,10 +110,17 @@ function newEthereumBlockchainSpace() {
networkClient.payload.uiObject.resetErrorMessage()
if (status.isSyncing === false) {
if (status.isSyncing === false && status.chainId === 0) {
networkClient.payload.uiObject.setStatus('Client is looking for peers...', ANNIMATION_CYCLES_TO_LAST)
return
}
if (status.chainId > 0) {
let networkName = UI.projects.ethereum.globals.chainIds.chainNameById(status.chainId)
networkClient.payload.uiObject.setStatus('Connected to ' + networkName + ' via http. ', ANNIMATION_CYCLES_TO_LAST)
return
}
/* If it is not syncing, then we have the current block and the highets block too */
let percentage = (status.isSyncing.currentBlock * 100 / status.isSyncing.highestBlock).toFixed(4)
let extraStatus = ''
@@ -134,9 +141,7 @@ function newEthereumBlockchainSpace() {
if (status.isSyncing.currentBlock !== status.isSyncing.highestBlock) {
networkClient.payload.uiObject.setStatus('Connected via http. Client is Syncing... ' + extraStatus, ANNIMATION_CYCLES_TO_LAST)
} else {
networkClient.payload.uiObject.setStatus('Connected to ' + client.networkName + ' via http. ', ANNIMATION_CYCLES_TO_LAST)
}
}
function splitLargeNumber(number) {
let label = number.toString()
@@ -266,7 +266,7 @@ function newSuperalgosCockpitSpace() {
x: thisObject.container.frame.width / 2,
y: thisObject.container.frame.height / 2 + 5
}
UI.projects.superalgos.utilities.drawPrint.printLabel(statusText, undefined, position.x, undefined, position.y, 1, 15, textColor, 'Center', thisObject.container)
UI.projects.superalgos.utilities.drawPrint.printLabel(statusText, undefined, undefined, position.x, position.y, 1, 15, textColor, 'Center', thisObject.container)
}
if (UI.projects.superalgos.spaces.designSpace !== undefined) {