diff --git a/Projects/Governance/Icons/p2p-network-nodes.png b/Projects/Governance/Icons/p2p-network-nodes.png new file mode 100644 index 000000000..a4ee2a209 Binary files /dev/null and b/Projects/Governance/Icons/p2p-network-nodes.png differ diff --git a/Projects/Governance/Schemas/App-Schema/p2p-network-node.json b/Projects/Governance/Schemas/App-Schema/p2p-network-node.json index 17f1a4838..71fee78ba 100644 --- a/Projects/Governance/Schemas/App-Schema/p2p-network-node.json +++ b/Projects/Governance/Schemas/App-Schema/p2p-network-node.json @@ -30,8 +30,8 @@ "addLeftIcons": true, "level": 1, "attachingRules": { - "compatibleTypes": "->Signing Account->" + "compatibleTypes": "->P2P Network Nodes->" }, "childrenNodesProperties": [], - "propertyNameAtParent": "signingAccountChild" + "propertyNameAtParent": "p2pNetworkNodes" } \ No newline at end of file diff --git a/Projects/Governance/Schemas/App-Schema/p2p-network-nodes.json b/Projects/Governance/Schemas/App-Schema/p2p-network-nodes.json new file mode 100644 index 000000000..57e169abb --- /dev/null +++ b/Projects/Governance/Schemas/App-Schema/p2p-network-nodes.json @@ -0,0 +1,50 @@ +{ + "type": "P2P Network Nodes", + "menuItems": [ + { + "action": "Configure", + "actionFunction": "uiObject.configEditor.activate", + "label": "Configure", + "iconPathOn": "configuration", + "iconPathOff": "configuration" + }, + { + "action": "Add UI Object", + "actionProject": "Visual-Scripting", + "actionFunction": "payload.executeAction", + "label": "Add P2P Network Node", + "relatedUiObject": "P2P Network Node", + "relatedUiObjectProject": "Governance" + }, + { + "action": "Delete UI Object", + "actionProject": "Visual-Scripting", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete-entity", + "iconPathOff": "delete-entity", + "actionFunction": "payload.executeAction" + } + ], + "editors": { + "config": true + }, + "initialValues": { + "config": "{}" + }, + "addLeftIcons": true, + "level": 2, + "attachingRules": { + "compatibleTypes": "->User Profile->" + }, + "propertyNameAtParent": "p2pNetworkNodes", + "childrenNodesProperties": [ + { + "name": "p2pNetworkNodes", + "type": "array", + "childType": "P2P Network Node", + "autoAdd": false + } + ] +} \ No newline at end of file diff --git a/Projects/Governance/Schemas/App-Schema/user-profile.json b/Projects/Governance/Schemas/App-Schema/user-profile.json index 0881383a0..e35ae4b87 100644 --- a/Projects/Governance/Schemas/App-Schema/user-profile.json +++ b/Projects/Governance/Schemas/App-Schema/user-profile.json @@ -58,6 +58,16 @@ "relatedUiObject": "Social Personas", "relatedUiObjectProject": "Governance" }, + { + "action": "Add UI Object", + "actionProject": "Visual-Scripting", + "disableIfPropertyIsDefined": true, + "propertyToCheckFor": "p2pNetworkNodes", + "actionFunction": "payload.executeAction", + "label": "Add P2P Network Nodes", + "relatedUiObject": "P2P Network Nodes", + "relatedUiObjectProject": "Governance" + }, { "action": "Install as Plugin", "actionProject": "Community-Plugins", @@ -125,6 +135,12 @@ "type": "node", "childType": "Social Personas", "autoAdd": false + }, + { + "name": "p2pNetworkNodes", + "type": "node", + "childType": "P2P Network Nodes", + "autoAdd": false } ], "inMapMode": {