From b2f7ccbb1232528f1fc5b20e10bf9dc06117ce06 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 28 Jul 2019 08:52:53 +0200 Subject: [PATCH] Saving and Execution Focus from Definition --- FloatingSpace/StrategyPartConstructor.js | 78 ++++++++++++------------ 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/FloatingSpace/StrategyPartConstructor.js b/FloatingSpace/StrategyPartConstructor.js index c3c94205c..0f69d9e1f 100644 --- a/FloatingSpace/StrategyPartConstructor.js +++ b/FloatingSpace/StrategyPartConstructor.js @@ -189,6 +189,37 @@ function newStrategyPartConstructor () { floatingObject.isPinned = true floatingObject.positionLocked = true addLeftIcons(menuItemsInitialValues, floatingObject) + menuItemsInitialValues.push( + { + action: 'Run Trading System', + actionFunction: payload.uiObject.run, + label: 'Run', + visible: false, + iconPathOn: 'paper-plane', + iconPathOff: 'upload', + rawRadius: 8, + targetRadius: 0, + currentRadius: 0, + angle: -70 + } + ) + menuItemsInitialValues.push( + { + action: 'Save Trading System', + actionFunction: payload.onMenuItemClick, + label: 'Save Changes', + workingLabel: 'Saving...', + workDoneLabel: 'Saved', + workFailedLabel: 'Not Saved', + visible: false, + iconPathOn: 'upload', + iconPathOff: 'upload', + rawRadius: 8, + targetRadius: 0, + currentRadius: 0, + angle: -40 + } + ) menuItemsInitialValues.push( { action: 'Delete Definition', @@ -202,7 +233,7 @@ function newStrategyPartConstructor () { rawRadius: 8, targetRadius: 0, currentRadius: 0, - angle: -60 + angle: -10 } ) menuItemsInitialValues.push( @@ -217,7 +248,7 @@ function newStrategyPartConstructor () { rawRadius: 8, targetRadius: 0, currentRadius: 0, - angle: -20 + angle: 10 } ) menuItemsInitialValues.push( @@ -232,7 +263,7 @@ function newStrategyPartConstructor () { rawRadius: 8, targetRadius: 0, currentRadius: 0, - angle: 20 + angle: 40 } ) menuItemsInitialValues.push( @@ -246,7 +277,7 @@ function newStrategyPartConstructor () { rawRadius: 8, targetRadius: 0, currentRadius: 0, - angle: 60 + angle: 70 } ) break @@ -434,37 +465,6 @@ function newStrategyPartConstructor () { } case 'Trading System': { addLeftIcons(menuItemsInitialValues, floatingObject) - menuItemsInitialValues.push( - { - action: 'Run Trading System', - actionFunction: payload.uiObject.run, - label: 'Run', - visible: false, - iconPathOn: 'paper-plane', - iconPathOff: 'upload', - rawRadius: 8, - targetRadius: 0, - currentRadius: 0, - angle: -70 - } - ) - menuItemsInitialValues.push( - { - action: 'Save Trading System', - actionFunction: payload.onMenuItemClick, - label: 'Save Changes', - workingLabel: 'Saving...', - workDoneLabel: 'Saved', - workFailedLabel: 'Not Saved', - visible: false, - iconPathOn: 'upload', - iconPathOff: 'upload', - rawRadius: 8, - targetRadius: 0, - currentRadius: 0, - angle: -40 - } - ) menuItemsInitialValues.push( { action: 'Delete Trading System', @@ -478,7 +478,7 @@ function newStrategyPartConstructor () { rawRadius: 8, targetRadius: 0, currentRadius: 0, - angle: -10 + angle: -60 } ) menuItemsInitialValues.push( @@ -493,7 +493,7 @@ function newStrategyPartConstructor () { rawRadius: 8, targetRadius: 0, currentRadius: 0, - angle: +10 + angle: -20 } ) menuItemsInitialValues.push( @@ -508,7 +508,7 @@ function newStrategyPartConstructor () { rawRadius: 8, targetRadius: 0, currentRadius: 0, - angle: 40 + angle: 20 } ) menuItemsInitialValues.push( @@ -522,7 +522,7 @@ function newStrategyPartConstructor () { rawRadius: 8, targetRadius: 0, currentRadius: 0, - angle: 70 + angle: 60 } ) break