BUG FIXES All working in local now

This commit is contained in:
Luis Fernando Molina committed 2019-07-29 11:18:42 +02:00
1 parent fd4344e793
commit 92a4200c4c
2 files changed
+8 -5

No files matched your search

+6 -3
View File
@@ -45,12 +45,14 @@ function newStrategizerGateway () {
return
}
user = JSON.parse(user)
if (window.canvasApp.executingAt === 'Local') {
window.localStorage.setItem(CANVAS_APP_NAME + '.' + MODULE_NAME + '.' + user.alias, 'Local File')
thisObject.strategizerData = JSON.parse('{"type":"Definition"}')
thisObject.idAtStrategizer = 'Local File'
} else {
user = JSON.parse(user)
return true
} else {
let fbSlug = 'simulator-bot-' + user.alias.replace('.', '')
graphQLServer = await axios({
@@ -119,7 +121,7 @@ function newStrategizerGateway () {
}
if (window.canvasApp.executingAt === 'Local') {
callServer(tradingSystem, 'SaveDefinition', onSaved)
callServer(JSON.stringify(tradingSystem), 'SaveDefinition', onSaved)
function onSaved (err) {
if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result) {
return true
@@ -128,6 +130,7 @@ function newStrategizerGateway () {
return false
}
}
return true
} else {
user = JSON.parse(user)
+2 -2
View File
@@ -59,8 +59,8 @@ function newWorkspace () {
}
user = JSON.parse(user)
let idAtStrategizer = null
let savedWorkspace = null
let idAtStrategizer = window.localStorage.getItem(CANVAS_APP_NAME + '.' + 'Strategizer Gateway' + '.' + user.alias)
let savedWorkspace = window.localStorage.getItem(CANVAS_APP_NAME + '.' + 'Workspace' + '.' + user.alias)
if (savedWorkspace === null || idAtStrategizer === null) {
workspaceNode.type = 'Workspace'