Key can be added from parameters

This commit is contained in:
Luis Fernando Molina committed 2019-12-19 14:38:24 +01:00
1 parent d94b42ffcf
commit c475ed065b
3 files changed
+19 -2

No files matched your search

@@ -1623,7 +1623,12 @@ function newUiObjectsFromNodes () {
name: 'New Key',
code: 'Paste your exchange API secret key here and the put the key name as this key object title. Secret keys are filtered out and NOT exported when using the SHARE menu option on any object at your workspace. Secret keys ARE downloaded when using the download button.'
}
exchangeAccount.keys.push(key)
if (exchangeAccount.keys !== undefined) {
exchangeAccount.keys.push(key)
} else {
exchangeAccount.key = key
}
createUiObject(true, 'Exchange Account Key', key.name, key, exchangeAccount, exchangeAccount, 'Account Key')
return key
+7
View File
@@ -203,12 +203,19 @@ function newWorkspace () {
if (droppedNode.type === 'Workspace') {
stopAllRunningTasks()
console.log(new Date())
functionLibraryNodeDeleter.deleteWorkspace(thisObject.workspaceNode, thisObject.workspaceNode.rootNodes)
console.log(new Date())
canvas.floatingSpace.warmUp()
console.log(new Date())
thisObject.workspaceNode = droppedNode
console.log(new Date())
functionLibraryUiObjectsFromNodes.recreateWorkspace(thisObject.workspaceNode)
console.log(new Date())
canvas.chartSpace.finalize()
console.log(new Date())
canvas.chartSpace.initialize()
console.log(new Date())
return
}
+6 -1
View File
@@ -318,7 +318,12 @@ function newFloatingObject () {
}
function someoneAquiredFocus (container) {
if (container === undefined) { return }
if (container === undefined) {
return
}
if (thisObject.container === undefined) {
return
}
if (container.id !== thisObject.container.id) {
removeFocus()
}