119 lines
3.9 KiB
JSON
119 lines
3.9 KiB
JSON
{
|
|
"type": "Weight Votes Switch",
|
|
"menuItems": [
|
|
{
|
|
"action": "Configure",
|
|
"actionFunction": "uiObject.configEditor.activate",
|
|
"label": "Configure",
|
|
"iconPathOn": "configuration",
|
|
"iconPathOff": "configuration"
|
|
},
|
|
{
|
|
"action": "Install Missing Votes",
|
|
"actionProject": "Governance",
|
|
"actionFunction": "payload.executeAction",
|
|
"label": "Install Missing Votes",
|
|
"relatedUiObject": "Weight Votes Switch",
|
|
"askConfirmation": true,
|
|
"confirmationLabel": "Confirm to Install",
|
|
"relatedUiObjectProject": "Governance"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Visual-Scripting",
|
|
"actionFunction": "payload.executeAction",
|
|
"label": "Add Weight Votes Switch",
|
|
"relatedUiObject": "Weight Votes Switch",
|
|
"relatedUiObjectProject": "Governance"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Visual-Scripting",
|
|
"actionFunction": "payload.executeAction",
|
|
"label": "Add Pool Weight Vote",
|
|
"relatedUiObject": "Pool Weight Vote",
|
|
"relatedUiObjectProject": "Governance"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Visual-Scripting",
|
|
"actionFunction": "payload.executeAction",
|
|
"label": "Add Position Weight Vote",
|
|
"relatedUiObject": "Position Weight Vote",
|
|
"relatedUiObjectProject": "Governance"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Visual-Scripting",
|
|
"actionFunction": "payload.executeAction",
|
|
"label": "Add Asset Weight Vote",
|
|
"relatedUiObject": "Asset Weight Vote",
|
|
"relatedUiObjectProject": "Governance"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Visual-Scripting",
|
|
"actionFunction": "payload.executeAction",
|
|
"label": "Add Feature Weight Vote",
|
|
"relatedUiObject": "Feature Weight Vote",
|
|
"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,
|
|
"referencingRules": {
|
|
"compatibleTypes": "->Pools->Pool Class->Assets->Asset Class->Features->Feature Class->Positions->Position Class->"
|
|
},
|
|
"attachingRules": {
|
|
"compatibleTypes": "->Weight Votes Switch->Votes Switch->"
|
|
},
|
|
"propertyNameAtParent": "weightVotesSwitch",
|
|
"childrenNodesProperties": [
|
|
{
|
|
"name": "weightVotesSwitch",
|
|
"type": "array",
|
|
"childType": "Weight Votes Switch",
|
|
"autoAdd": false
|
|
},
|
|
{
|
|
"name": "poolWeightVotes",
|
|
"type": "array",
|
|
"childType": "Pool Weight Vote",
|
|
"autoAdd": false
|
|
},
|
|
{
|
|
"name": "assetWeightVotes",
|
|
"type": "array",
|
|
"childType": "Asset Weight Vote",
|
|
"autoAdd": false
|
|
},
|
|
{
|
|
"name": "featureWeightVotes",
|
|
"type": "array",
|
|
"childType": "Feature Weight Vote",
|
|
"autoAdd": false
|
|
},
|
|
{
|
|
"name": "positionWeightVotes",
|
|
"type": "array",
|
|
"childType": "Position Weight Vote",
|
|
"autoAdd": false
|
|
}
|
|
]
|
|
} |