Workspace saved is now fully loaded well
This commit is contained in:
1 parent
976dc22ab1
commit
1aac6f2d71
2 files changed
+5
-6
No files matched your search
@@ -194,11 +194,10 @@ function newWorkspaceNode () {
|
||||
type: node.type,
|
||||
subType: node.subType,
|
||||
name: node.name,
|
||||
entryPoint: getWorkspaceNode(node.entryPoint),
|
||||
exitPoint: getWorkspaceNode(node.exitPoint),
|
||||
sellPoint: getWorkspaceNode(node.sellPoint),
|
||||
stopLoss: getWorkspaceNode(node.stopLoss),
|
||||
buyOrder: getWorkspaceNode(node.buyOrder),
|
||||
triggerStage: getWorkspaceNode(node.triggerStage),
|
||||
openStage: getWorkspaceNode(node.openStage),
|
||||
manageStage: getWorkspaceNode(node.manageStage),
|
||||
closeStage: getWorkspaceNode(node.closeStage),
|
||||
savedPayload: getSavedPayload(node)
|
||||
}
|
||||
return strategy
|
||||
|
||||
@@ -114,7 +114,7 @@ function newWorkspace () {
|
||||
rootNodes: stringifyReadyNodes
|
||||
}
|
||||
let textToSave = JSON.stringify(workspace)
|
||||
// window.localStorage.setItem('workspace', textToSave)
|
||||
window.localStorage.setItem('workspace', textToSave)
|
||||
}
|
||||
|
||||
function spawn (nodeText, point) {
|
||||
|
||||
Reference in new issue
Block a user