Bug fixes

This commit is contained in:
Luis Fernando Molina committed 2020-10-17 13:11:31 +02:00
1 parent 5c1960330d
commit feec3880ba
4 files changed
+16 -42

No files matched your search

+11 -17
View File
@@ -2,29 +2,21 @@
{
"type": "Ethereum",
"menuItems": [
{
"action": "Pin / Unpin",
"currentStatus": true,
"iconPathOn": "unpinned",
"iconPathOff": "pinned",
"actionFunction": "payload.executeAction",
"ring": 1
},
{
"action": "Add UI Object",
"label": "Add Network",
"relatedUiObject": "Network",
"label": "Add Ethereum Network",
"relatedUiObject": "Ethereum Network",
"actionFunction": "payload.executeAction"
}
],
"isHProjectHead": true,
"isTitleAllwaysVisible": true,
"addLeftIcons": false,
"addLeftIcons": true,
"isPinned": true,
"positionLocked": true
},
{
"type": "Network",
"type": "Ethereum Network",
"menuItems": [
{
"action": "Add UI Object",
@@ -51,7 +43,8 @@
"type": "array",
"childType": "Network Node"
}
]
],
"icon": "ethereum"
},
{
"type": "Network Node",
@@ -80,13 +73,13 @@
"initialValues": {
"config": "{ \n\"host\": \"localhost\", \n\"webPort\": \"34248\", \n\"webSocketsPort\": \"8081\"\n}"
},
"isTitleAllwaysVisible": true,
"addLeftIcons": true,
"level": 1,
"chainAttachesTo": {
"compatibleTypes": "->Network->"
"compatibleTypes": "->Ethereum Network->"
},
"propertyNameAtParent": "networkNodes"
"propertyNameAtParent": "networkNodes",
"icon": "ethereum"
},
{
"type": "Ethereum Project",
@@ -116,6 +109,7 @@
"type": "array",
"childType": "Network Node"
}
]
],
"icon": "ethereum"
}
]
@@ -113,7 +113,7 @@ function newSuperalgosActionSwitch() {
break
case 'Add UI Object':
{
functionLibraryUiObjectsFromNodes.addUIObject(action.node, action.relatedNodeType)
functionLibraryUiObjectsFromNodes.addUIObject(action.node, action.relatedNodeType, action.rootNodes)
}
break
case 'Add Missing Children':
@@ -126,24 +126,6 @@ function newSuperalgosActionSwitch() {
functionLibraryNodeDeleter.deleteUIObject(action.node, action.rootNodes)
}
break
case 'Share Workspace':
{
let text = stringifyWorkspace(true)
let fileName = 'Share - ' + action.node.type + ' - ' + action.node.name + '.json'
if (text !== undefined) {
downloadText(fileName, text)
}
}
break
case 'Backup Workspace':
{
let text = stringifyWorkspace(false)
let fileName = 'Backup - ' + action.node.type + ' - ' + action.node.name + '.json'
if (text !== undefined) {
downloadText(fileName, text)
}
}
break
case 'Edit Code':
break
@@ -320,7 +320,7 @@ function newUiObjectsFromNodes() {
}
}
function addUIObject(parentNode, type) {
function addUIObject(parentNode, type, rootNodes) {
let object = {
name: 'New ' + type,
type: type,
@@ -351,7 +351,7 @@ function newUiObjectsFromNodes() {
}
if (nodeDefinition.isHierarchyHead === true) {
parentNode.rootNodes.push(object)
rootNodes.push(object)
createUiObject(true, object.type, object.name, object, parentNode, undefined)
return object
}
+2 -4
View File
@@ -1392,17 +1392,15 @@
"ring": 1
},
{
"action": "Share Workspace",
"iconPathOn": "share",
"iconPathOff": "share",
"actionFunction": "payload.executeAction",
"actionFunction": "canvas.designSpace.workspace.share",
"ring": 1
},
{
"action": "Backup Workspace",
"iconPathOn": "backup",
"iconPathOff": "backup",
"actionFunction": "payload.executeAction",
"actionFunction": "canvas.designSpace.workspace.backup",
"ring": 1
},
{