This commit is contained in:
Luis Fernando Molina committed 2020-10-21 16:21:57 +02:00
1 parent 9171f9630e
commit bb2f493ffa
5 files changed
+13 -12

No files matched your search

@@ -53,7 +53,8 @@ function newUiObjectsFromNodes() {
let rootNode = node.rootNodes[i]
if (rootNode.type === 'Plugins') {
let plugins = rootNode
if (plugins.pluginProjects === undefined) { continue }
for (let j = 0; j < plugins.pluginProjects.length; j++) {
let project = plugins.pluginProjects[j]
if (project.pluginDataMines !== undefined) {
@@ -57,16 +57,16 @@ function newCodeEditor() {
EDITOR_ON_FOCUS = false
}
function activate(payload) {
function activate(action) {
thisObject.visible = true
thisObject.payload = payload
thisObject.payload = action.node.payload
thisObject.rawRadius = 8
thisObject.targetRadius = thisObject.container.frame.radius
thisObject.currentRadius = 0
thisObject.payload.uiObject.resetErrorMessage()
let textArea = document.getElementById('textArea')
textArea.value = payload.node.code
textArea.value = thisObject.payload.node.code
textArea.style = 'resize: none;' +
' border: none;' +
' outline: none;' +
@@ -77,9 +77,9 @@ function newConditionEditor() {
valueIcon = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName( 'Superalgos', 'trading-strategy')
}
function activate(payload) {
function activate(action) {
thisObject.visible = true
thisObject.payload = payload
thisObject.payload = action.node.payload
thisObject.payload.uiObject.resetErrorMessage()
conditionStructure = {
@@ -63,16 +63,16 @@ function newConfigEditor() {
EDITOR_ON_FOCUS = false
}
function activate(payload) {
function activate(action) {
thisObject.visible = true
thisObject.payload = payload
thisObject.payload = action.node.payload
thisObject.rawRadius = 8
thisObject.targetRadius = thisObject.container.frame.radius
thisObject.currentRadius = 0
thisObject.payload.uiObject.resetErrorMessage()
let textArea = document.getElementById('textArea')
textArea.value = payload.node.config
textArea.value = thisObject.payload.node.config
textArea.style = 'resize: none;' +
' border: none;' +
' outline: none;' +
@@ -57,16 +57,16 @@ function newFormulaEditor() {
EDITOR_ON_FOCUS = false
}
function activate(payload) {
function activate(action) {
thisObject.visible = true
thisObject.payload = payload
thisObject.payload = action.node.payload
thisObject.rawRadius = 8
thisObject.targetRadius = thisObject.container.frame.radius
thisObject.currentRadius = 0
thisObject.payload.uiObject.resetErrorMessage()
let textArea = document.getElementById('textArea')
textArea.value = payload.node.code
textArea.value = thisObject.payload.node.code
textArea.style = 'resize: none;' +
' border: none;' +
' outline: none;' +