82 lines
2.5 KiB
JSON
82 lines
2.5 KiB
JSON
{
|
|
"type": "Referral Program",
|
|
"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 User Referrer",
|
|
"relatedUiObject": "User Referrer",
|
|
"relatedUiObjectProject": "Governance"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Visual-Scripting",
|
|
"disableIfPropertyIsDefined": true,
|
|
"propertyToCheckFor": "tokensAwarded",
|
|
"actionFunction": "payload.executeAction",
|
|
"label": "Add Tokens Awarded",
|
|
"relatedUiObject": "Tokens Awarded",
|
|
"relatedUiObjectProject": "Governance"
|
|
},
|
|
{
|
|
"action": "Add UI Object",
|
|
"actionProject": "Visual-Scripting",
|
|
"disableIfPropertyIsDefined": true,
|
|
"propertyToCheckFor": "tokensBonus",
|
|
"actionFunction": "payload.executeAction",
|
|
"label": "Add Tokens Bonus",
|
|
"relatedUiObject": "Tokens Bonus",
|
|
"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": "{}"
|
|
},
|
|
"attachingRules": {
|
|
"compatibleTypes": "->Community Building Programs->"
|
|
},
|
|
"addLeftIcons": true,
|
|
"level": 1,
|
|
"propertyNameAtParent": "referralProgram",
|
|
"childrenNodesProperties": [
|
|
{
|
|
"name": "userReferrers",
|
|
"type": "array",
|
|
"childType": "User Referrer",
|
|
"autoAdd": true
|
|
},
|
|
{
|
|
"name": "tokensAwarded",
|
|
"type": "node",
|
|
"childType": "Tokens Awarded",
|
|
"autoAdd": true
|
|
},
|
|
{
|
|
"name": "tokensBonus",
|
|
"type": "node",
|
|
"childType": "Tokens Bonus",
|
|
"autoAdd": true
|
|
}
|
|
]
|
|
} |