All vote types implemented

This commit is contained in:
Luis Fernando Molina committed 2021-06-03 21:27:00 +02:00
1 parent 8f50c4295b
commit 6c14a20679
4 files changed
+112 -6

No files matched your search

@@ -0,0 +1,41 @@
{
"type": "Asset Claim Vote",
"menuItems": [
{
"action": "Configure",
"actionFunction": "uiObject.configEditor.activate",
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration"
},
{
"action": "Delete UI Object",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"title": [
"Reference Parent Find In Parents Node Type->User Profile",
"Use Reference Parent"
],
"editors": {
"config": true
},
"initialValues": {
"config": "{\n \"description\": \"\"\n}"
},
"addLeftIcons": true,
"level": 2,
"attachingRules": {
"compatibleTypes": "->Votes Switch->"
},
"referencingRules": {
"compatibleTypes": "->Asset Contribution Claim->"
},
"propertyNameAtParent": "assetClaimVotes",
"icon": "EN"
}
@@ -0,0 +1,41 @@
{
"type": "Feature Claim Vote",
"menuItems": [
{
"action": "Configure",
"actionFunction": "uiObject.configEditor.activate",
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration"
},
{
"action": "Delete UI Object",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"title": [
"Reference Parent Find In Parents Node Type->User Profile",
"Use Reference Parent"
],
"editors": {
"config": true
},
"initialValues": {
"config": "{\n \"description\": \"\"\n}"
},
"addLeftIcons": true,
"level": 2,
"attachingRules": {
"compatibleTypes": "->Votes Switch->"
},
"referencingRules": {
"compatibleTypes": "->Feature Contribution Claim->"
},
"propertyNameAtParent": "featureClaimVotes",
"icon": "github-api"
}
@@ -1,5 +1,5 @@
{
"type": "Time Vote",
"type": "Time Claim Vote",
"menuItems": [
{
"action": "Configure",
@@ -36,6 +36,6 @@
"referencingRules": {
"compatibleTypes": "->Time Contribution Claim->"
},
"propertyNameAtParent": "timeVotes",
"propertyNameAtParent": "timeClaimVotes",
"icon": "dogecoin"
}
@@ -35,8 +35,20 @@
{
"action": "Add UI Object",
"actionFunction": "payload.executeAction",
"label": "Add Time Vote",
"relatedUiObject": "Time Vote"
"label": "Add Time Claim Vote",
"relatedUiObject": "Time Claim Vote"
},
{
"action": "Add UI Object",
"actionFunction": "payload.executeAction",
"label": "Add Asset Claim Vote",
"relatedUiObject": "Asset Claim Vote"
},
{
"action": "Add UI Object",
"actionFunction": "payload.executeAction",
"label": "Add Feature Claim Vote",
"relatedUiObject": "Feature Claim Vote"
},
{
"action": "Add UI Object",
@@ -86,9 +98,21 @@
"autoAdd": false
},
{
"name": "timeVotes",
"name": "timeClaimVotes",
"type": "array",
"childType": "Time Vote",
"childType": "Time Claim Vote",
"autoAdd": false
},
{
"name": "assetClaimVotes",
"type": "array",
"childType": "Asset Claim Vote",
"autoAdd": false
},
{
"name": "featureClaimVotes",
"type": "array",
"childType": "Feature Claim Vote",
"autoAdd": false
},
{