Files

64 lines
2.0 KiB
JSON

{
"type": "User Profile Votes Switch",
"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 Profile Votes Switch",
"relatedUiObject": "User Profile Votes Switch",
"relatedUiObjectProject": "Governance"
},
{
"action": "Add UI Object",
"actionProject": "Visual-Scripting",
"actionFunction": "payload.executeAction",
"label": "Add User Profile Vote",
"relatedUiObject": "User Profile 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,
"attachingRules": {
"compatibleTypes": "->User Profile Votes Switch->Votes Switch->"
},
"propertyNameAtParent": "userProfileVotesSwitch",
"childrenNodesProperties": [
{
"name": "userProfileVotesSwitch",
"type": "array",
"childType": "User Profile Votes Switch",
"autoAdd": false
},
{
"name": "userProfileVote",
"type": "array",
"childType": "User Profile Vote",
"autoAdd": false
}
]
}