Polishing Icon Issues
This commit is contained in:
1 parent
c78e8b4550
commit
578f76132b
1 file changed
+20
-104
@@ -190,8 +190,8 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: undefined,
|
||||
visible: false,
|
||||
iconPathOn: 'share',
|
||||
iconPathOff: 'share',
|
||||
iconPathOn: 'backup',
|
||||
iconPathOff: 'backup',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
@@ -268,8 +268,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Trading System',
|
||||
visible: false,
|
||||
iconPathOn: 'approve',
|
||||
iconPathOff: 'approve',
|
||||
relatedStrategyPart: 'Trading System',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -283,8 +281,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Personal Data',
|
||||
visible: false,
|
||||
iconPathOn: 'approve',
|
||||
iconPathOff: 'approve',
|
||||
relatedStrategyPart: 'Personal Data',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -332,8 +328,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Exchange Account',
|
||||
visible: false,
|
||||
iconPathOn: 'approve',
|
||||
iconPathOff: 'approve',
|
||||
relatedStrategyPart: 'Exchange Account',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -367,8 +361,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Asset',
|
||||
visible: false,
|
||||
iconPathOn: 'paper-plane',
|
||||
iconPathOff: 'paper-plane',
|
||||
relatedStrategyPart: 'Exchange Account Asset',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -382,8 +374,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Key',
|
||||
visible: false,
|
||||
iconPathOn: 'login',
|
||||
iconPathOff: 'login',
|
||||
relatedStrategyPart: 'Exchange Account Key',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -477,8 +467,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Strategy',
|
||||
visible: false,
|
||||
iconPathOn: 'quality',
|
||||
iconPathOff: 'quality',
|
||||
relatedStrategyPart: 'Strategy',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -492,8 +480,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Parameters',
|
||||
visible: false,
|
||||
iconPathOn: 'quality',
|
||||
iconPathOff: 'quality',
|
||||
relatedStrategyPart: 'Parameters',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -541,8 +527,7 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Missing Params',
|
||||
visible: false,
|
||||
iconPathOn: 'settings',
|
||||
iconPathOff: 'settings',
|
||||
relatedStrategyPart: 'Parameters',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
@@ -589,8 +574,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Formula',
|
||||
visible: false,
|
||||
iconPathOn: 'pipette',
|
||||
iconPathOff: 'pipette',
|
||||
relatedStrategyPart: 'Formula',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -622,8 +605,7 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Missing Stages',
|
||||
visible: false,
|
||||
iconPathOn: 'target',
|
||||
iconPathOff: 'delete',
|
||||
relatedStrategyPart: 'Strategy',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
@@ -663,61 +645,21 @@ function newStrategyPartConstructor () {
|
||||
break
|
||||
}
|
||||
case 'Trigger Stage': {
|
||||
menuItemsInitialValues = [
|
||||
{
|
||||
action: 'Pin / Unpin',
|
||||
actionFunction: floatingObject.pinToggle,
|
||||
actionStatus: floatingObject.getPinStatus,
|
||||
currentStatus: false,
|
||||
label: undefined,
|
||||
visible: false,
|
||||
iconPathOn: 'target',
|
||||
iconPathOff: 'security',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: -135
|
||||
},
|
||||
{
|
||||
action: 'Tense / Untense',
|
||||
actionFunction: floatingObject.tensionToggle,
|
||||
actionStatus: floatingObject.getTensionStatus,
|
||||
currentStatus: false,
|
||||
label: undefined,
|
||||
visible: false,
|
||||
iconPathOn: 'compass',
|
||||
iconPathOff: 'headphones',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: 180
|
||||
},
|
||||
{
|
||||
action: 'Freeze / Unfreeze',
|
||||
actionFunction: floatingObject.freezeToggle,
|
||||
actionStatus: floatingObject.getFreezeStatus,
|
||||
currentStatus: true,
|
||||
label: undefined,
|
||||
visible: false,
|
||||
iconPathOn: 'targeting',
|
||||
iconPathOff: 'broken-link',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: 135
|
||||
},
|
||||
addLeftIcons(menuItemsInitialValues, floatingObject)
|
||||
menuItemsInitialValues.push(
|
||||
{
|
||||
action: 'Add Missing Events',
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Missing Events',
|
||||
visible: false,
|
||||
iconPathOn: 'target',
|
||||
iconPathOff: 'delete',
|
||||
relatedStrategyPart: 'Trigger Stage',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: -40
|
||||
},
|
||||
}
|
||||
)
|
||||
menuItemsInitialValues.push(
|
||||
{
|
||||
action: 'Delete Trigger Stage',
|
||||
askConfirmation: true,
|
||||
@@ -731,7 +673,9 @@ function newStrategyPartConstructor () {
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: 0
|
||||
},
|
||||
}
|
||||
)
|
||||
menuItemsInitialValues.push(
|
||||
{
|
||||
action: 'Share',
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
@@ -743,7 +687,8 @@ function newStrategyPartConstructor () {
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: 40
|
||||
}]
|
||||
}
|
||||
)
|
||||
break
|
||||
}
|
||||
case 'Open Stage': {
|
||||
@@ -754,8 +699,7 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Initial Definition',
|
||||
visible: false,
|
||||
iconPathOn: 'target',
|
||||
iconPathOff: 'delete',
|
||||
relatedStrategyPart: 'Initial Definition',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
@@ -768,8 +712,7 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Open Execution',
|
||||
visible: false,
|
||||
iconPathOn: 'target',
|
||||
iconPathOff: 'delete',
|
||||
relatedStrategyPart: 'Open Execution',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
@@ -816,8 +759,7 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Missing Items',
|
||||
visible: false,
|
||||
iconPathOn: 'target',
|
||||
iconPathOff: 'delete',
|
||||
relatedStrategyPart: 'Manage Stage',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
@@ -864,8 +806,7 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Close Execution',
|
||||
visible: false,
|
||||
iconPathOn: 'target',
|
||||
iconPathOff: 'delete',
|
||||
relatedStrategyPart: 'Close Execution',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
@@ -928,8 +869,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Formula',
|
||||
visible: false,
|
||||
iconPathOn: 'pipette',
|
||||
iconPathOff: 'pipette',
|
||||
relatedStrategyPart: 'Formula',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -977,8 +916,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Formula',
|
||||
visible: false,
|
||||
iconPathOn: 'pipette',
|
||||
iconPathOff: 'pipette',
|
||||
relatedStrategyPart: 'Formula',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -1010,8 +947,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Situation',
|
||||
visible: false,
|
||||
iconPathOn: 'pyramid',
|
||||
iconPathOff: 'pyramid',
|
||||
relatedStrategyPart: 'Situation',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -1059,8 +994,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Situation',
|
||||
visible: false,
|
||||
iconPathOn: 'pyramid',
|
||||
iconPathOff: 'pyramid',
|
||||
relatedStrategyPart: 'Situation',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -1108,8 +1041,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Situation',
|
||||
visible: false,
|
||||
iconPathOn: 'pyramid',
|
||||
iconPathOff: 'pyramid',
|
||||
relatedStrategyPart: 'Situation',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -1157,8 +1088,7 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Missing Items',
|
||||
visible: false,
|
||||
iconPathOn: 'target',
|
||||
iconPathOff: 'delete',
|
||||
relatedStrategyPart: 'Initial Definition',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
@@ -1273,8 +1203,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Phase',
|
||||
visible: false,
|
||||
iconPathOn: 'placeholder',
|
||||
iconPathOff: 'placeholder',
|
||||
relatedStrategyPart: 'Phase',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -1322,8 +1250,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Phase',
|
||||
visible: false,
|
||||
iconPathOn: 'placeholder',
|
||||
iconPathOff: 'placeholder',
|
||||
relatedStrategyPart: 'Phase',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -1371,8 +1297,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Formula',
|
||||
visible: false,
|
||||
iconPathOn: 'pipette',
|
||||
iconPathOff: 'pipette',
|
||||
relatedStrategyPart: 'Formula',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -1386,8 +1310,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Next Phase Event',
|
||||
visible: false,
|
||||
iconPathOn: 'pipette',
|
||||
iconPathOff: 'pipette',
|
||||
relatedStrategyPart: 'Next Phase Event',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -1489,8 +1411,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Situation',
|
||||
visible: false,
|
||||
iconPathOn: 'pyramid',
|
||||
iconPathOff: 'pyramid',
|
||||
relatedStrategyPart: 'Situation',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -1538,8 +1458,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Condition',
|
||||
visible: false,
|
||||
iconPathOn: 'testing',
|
||||
iconPathOff: 'testing',
|
||||
relatedStrategyPart: 'Condition',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
@@ -1587,8 +1505,6 @@ function newStrategyPartConstructor () {
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Code',
|
||||
visible: false,
|
||||
iconPathOn: 'html',
|
||||
iconPathOff: 'html',
|
||||
relatedStrategyPart: 'Code',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
|
||||
Reference in new issue
Block a user