Files
Superalgos/Projects/Governance/Schemas/App-Schema/votes-switch.json
T

97 lines
3.0 KiB
JSON

{
"type": "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"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"actionFunction": "payload.executeAction",
"label": "Add Votes Switch",
"relatedUiObject": "Votes Switch"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"actionFunction": "payload.executeAction",
"label": "Add Claim Votes Switch",
"relatedUiObject": "Claim Votes Switch"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"actionFunction": "payload.executeAction",
"label": "Add Weight Votes Switch",
"relatedUiObject": "Weight Votes Switch"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"actionFunction": "payload.executeAction",
"label": "Add User Profile Votes Switch",
"relatedUiObject": "User Profile Votes Switch"
},
{
"action": "Delete UI Object",
"actionProject": "Foundations",
"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": "->Voting Program->Votes Switch->"
},
"propertyNameAtParent": "votesSwitch",
"childrenNodesProperties": [
{
"name": "votesSwitch",
"type": "array",
"childType": "Votes Switch",
"autoAdd": false
},
{
"name": "claimVotesSwitch",
"type": "array",
"childType": "Claim Votes Switch",
"autoAdd": false
},
{
"name": "weightVotesSwitch",
"type": "array",
"childType": "Weight Votes Switch",
"autoAdd": false
},
{
"name": "userProfileVotesSwitch",
"type": "array",
"childType": "User Profile Votes Switch",
"autoAdd": false
}
]
}