Changes in stopping the layers before refreshing and BUG fixed while logged out

This commit is contained in:
Luis Fernando Molina committed 2019-05-20 21:33:31 +02:00
1 parent 714b03ac20
commit dcd9bde192
2 files changed
+17 -5

No files matched your search

+12 -3
View File
@@ -109,7 +109,6 @@ function newRestartSimulation () {
await graphQlRestartSimulation(simulationParams)
thisObject.status = 'Calculating'
counterTillNextState = 2000
turnOffProductCards()
} else {
thisObject.status = 'Error'
counterTillNextState = 500
@@ -159,6 +158,11 @@ function newRestartSimulation () {
break
case 'Calculating':
thisObject.status = 'Refreshing'
turnOffProductCards()
counterTillNextState = 250
break
case 'Refreshing':
thisObject.status = 'Ready'
turnOnProductCards()
break
@@ -203,11 +207,14 @@ function newRestartSimulation () {
break
}
case 'Saving':
params.backgroundColor = UI_COLOR.GREY
params.backgroundColor = UI_COLOR.MANGANESE_PURPLE
break
case 'Restarting':
params.backgroundColor = UI_COLOR.GREY
break
case 'Refreshing':
params.backgroundColor = UI_COLOR.GOLDEN_ORANGE
break
case 'Calculating':
params.backgroundColor = UI_COLOR.TITANIUM_YELLOW
break
@@ -243,6 +250,9 @@ function newRestartSimulation () {
case 'Restarting':
label = 'RESTARTING TRADING ENGINE...'
break
case 'Refreshing':
label = 'RE-LOADING...'
break
case 'Calculating':
label = 'CALCULATING...'
break
@@ -261,4 +271,3 @@ function newRestartSimulation () {
browserCanvasContext.fillText(label, labelPoint.x, labelPoint.y)
}
}
+5 -2
View File
@@ -143,8 +143,10 @@ function newStrategySpace () {
function deploydTradingSystem () {
thisObject.workspace = newWorkspace()
thisObject.workspace.initialize(thisObject.strategizerGateway.strategizerData)
thisObject.isDeployed = true
if (thisObject.strategizerGateway.strategizerData !== undefined) {
thisObject.workspace.initialize(thisObject.strategizerGateway.strategizerData)
thisObject.isDeployed = true
}
}
function makeInvisible () {
@@ -173,3 +175,4 @@ function newStrategySpace () {
}
}
}