126 lines
4.0 KiB
JSON
126 lines
4.0 KiB
JSON
{
|
|
"type": "Token Power Switch",
|
|
"menuItems": [
|
|
{
|
|
"action": "Configure",
|
|
"actionFunction": "uiObject.configEditor.activate",
|
|
"label": "Configure",
|
|
"iconPathOn": "configuration",
|
|
"iconPathOff": "configuration"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Foundations",
|
|
"actionFunction": "payload.executeAction",
|
|
"disableIfPropertyIsDefined": true,
|
|
"propertyToCheckFor": "referralProgram",
|
|
"label": "Add Referral Program",
|
|
"relatedUiObject": "Referral Program"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Foundations",
|
|
"actionFunction": "payload.executeAction",
|
|
"disableIfPropertyIsDefined": true,
|
|
"propertyToCheckFor": "supportProgram",
|
|
"label": "Add Support Program",
|
|
"relatedUiObject": "Support Program"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Foundations",
|
|
"actionFunction": "payload.executeAction",
|
|
"disableIfPropertyIsDefined": true,
|
|
"propertyToCheckFor": "mentorshipProgram",
|
|
"label": "Add Mentorship Program",
|
|
"relatedUiObject": "Mentorship Program"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Foundations",
|
|
"actionFunction": "payload.executeAction",
|
|
"disableIfPropertyIsDefined": true,
|
|
"propertyToCheckFor": "claimsProgram",
|
|
"label": "Add Claims Program",
|
|
"relatedUiObject": "Claims Program"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Voting Program",
|
|
"actionFunction": "payload.executeAction",
|
|
"disableIfPropertyIsDefined": true,
|
|
"propertyToCheckFor": "votingProgram",
|
|
"label": "Add Voting Program",
|
|
"relatedUiObject": "Voting Program"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Foundations",
|
|
"actionFunction": "payload.executeAction",
|
|
"disableIfPropertyIsDefined": true,
|
|
"propertyToCheckFor": "stackingProgram",
|
|
"label": "Add Staking Program",
|
|
"relatedUiObject": "Staking Program"
|
|
},
|
|
{
|
|
"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": "->User Profile->"
|
|
},
|
|
"propertyNameAtParent": "tokenPowerSwitch",
|
|
"childrenNodesProperties": [
|
|
{
|
|
"name": "referralProgram",
|
|
"type": "node",
|
|
"childType": "Referral Program",
|
|
"autoAdd": true
|
|
},
|
|
{
|
|
"name": "supportProgram",
|
|
"type": "node",
|
|
"childType": "Support Program",
|
|
"autoAdd": true
|
|
},
|
|
{
|
|
"name": "mentorshipProgram",
|
|
"type": "node",
|
|
"childType": "Mentorship Program",
|
|
"autoAdd": true
|
|
},
|
|
{
|
|
"name": "claimsProgram",
|
|
"type": "node",
|
|
"childType": "Claims Program",
|
|
"autoAdd": true
|
|
},
|
|
{
|
|
"name": "votingProgram",
|
|
"type": "node",
|
|
"childType": "Voting Program",
|
|
"autoAdd": true
|
|
},
|
|
{
|
|
"name": "stackingProgram",
|
|
"type": "node",
|
|
"childType": "Staking Program",
|
|
"autoAdd": true
|
|
}
|
|
]
|
|
} |