Merge pull request #1065 from Luis-Fernando-Molina/next-version
Contribution: Use Reference Parent Parent Parent Parent implemented
This commit is contained in:
12 files changed
+193
-10
No files matched your search
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"type": "Asset 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": [
|
||||
"Use Reference Parent Parent Parent Parent",
|
||||
"Use Reference Parent Parent Parent",
|
||||
"Use Reference Parent Parent",
|
||||
"Use Reference Parent"
|
||||
],
|
||||
"editors": {
|
||||
"config": true
|
||||
},
|
||||
"initialValues": {
|
||||
"config": "{\n \"description\": \"\"\n}"
|
||||
},
|
||||
"addLeftIcons": true,
|
||||
"level": 2,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Civic Contributions->"
|
||||
},
|
||||
"referencingRules": {
|
||||
"compatibleTypes": "->Asset Class->Asset->"
|
||||
},
|
||||
"propertyNameAtParent": "assetVotes",
|
||||
"icon": "EN"
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
@@ -17,8 +17,26 @@
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Contributed Vote",
|
||||
"relatedUiObject": "Contributed Vote"
|
||||
"label": "Add Ranking Vote",
|
||||
"relatedUiObject": "Ranking Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Asset Vote",
|
||||
"relatedUiObject": "Asset Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Feature Vote",
|
||||
"relatedUiObject": "Feature Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add User Vote",
|
||||
"relatedUiObject": "User Vote"
|
||||
},
|
||||
{
|
||||
"action": "Delete UI Object",
|
||||
@@ -50,9 +68,27 @@
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "contributedVotes",
|
||||
"name": "assetVotes",
|
||||
"type": "array",
|
||||
"childType": "Contributed Vote",
|
||||
"childType": "Asset Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "featureVotes",
|
||||
"type": "array",
|
||||
"childType": "Feature Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "rankingVotes",
|
||||
"type": "array",
|
||||
"childType": "Ranking Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "userVotes",
|
||||
"type": "array",
|
||||
"childType": "User Vote",
|
||||
"autoAdd": false
|
||||
}
|
||||
],
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"type": "Feature 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": [
|
||||
"Use Reference Parent Parent",
|
||||
"Use Reference Parent"
|
||||
],
|
||||
"editors": {
|
||||
"config": true
|
||||
},
|
||||
"initialValues": {
|
||||
"config": "{\n \"description\": \"\"\n}"
|
||||
},
|
||||
"addLeftIcons": true,
|
||||
"level": 2,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Civic Contributions->"
|
||||
},
|
||||
"referencingRules": {
|
||||
"compatibleTypes": "->Contributed Time->Governance Contributions->"
|
||||
},
|
||||
"propertyNameAtParent": "featureVotes",
|
||||
"icon": "ethereum"
|
||||
}
|
||||
+1
-2
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"type": "Features Structure",
|
||||
"type": "Features",
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
@@ -22,7 +22,6 @@
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Superalgos Release->"
|
||||
},
|
||||
"propertyNameAtParent": "featuresStructure",
|
||||
"childrenNodesProperties": [
|
||||
{
|
||||
"name": "projectFeatures",
|
||||
@@ -7,6 +7,12 @@
|
||||
"relatedUiObject": "Assets",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"label": "Add Features",
|
||||
"relatedUiObject": "Features",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"label": "Add Ranking",
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"addLeftIcons": true,
|
||||
"level": 2,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Features Structure->Project Feature->"
|
||||
"compatibleTypes": "->Features->Project Feature->"
|
||||
},
|
||||
"propertyNameAtParent": "projectFeatures",
|
||||
"childrenNodesProperties": [
|
||||
|
||||
File renamed without changes.
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"type": "Ranking 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": [
|
||||
"Use Reference Parent Parent",
|
||||
"Use Reference Parent"
|
||||
],
|
||||
"editors": {
|
||||
"config": true
|
||||
},
|
||||
"initialValues": {
|
||||
"config": "{\n \"description\": \"\"\n}"
|
||||
},
|
||||
"addLeftIcons": true,
|
||||
"level": 2,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Civic Contributions->"
|
||||
},
|
||||
"referencingRules": {
|
||||
"compatibleTypes": "->Team->Ranking Position->"
|
||||
},
|
||||
"propertyNameAtParent": "rankingVotes",
|
||||
"icon": "bitfinex"
|
||||
}
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"type": "Contributed Vote",
|
||||
"type": "User Vote",
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Configure",
|
||||
@@ -36,6 +36,6 @@
|
||||
"referencingRules": {
|
||||
"compatibleTypes": "->Contributed Time->Governance Contributions->"
|
||||
},
|
||||
"propertyNameAtParent": "contributedVotes",
|
||||
"icon": "ethereum"
|
||||
"propertyNameAtParent": "userVotes",
|
||||
"icon": "dogecoin"
|
||||
}
|
||||
@@ -164,6 +164,23 @@ function newUiObjectTitle() {
|
||||
}
|
||||
break
|
||||
}
|
||||
case 'Use Reference Parent Parent Parent Parent': {
|
||||
let nodeToUse = thisObject.payload.node.payload.referenceParent
|
||||
if (nodeToUse !== undefined && nodeToUse.payload !== undefined && nodeToUse.payload.node.name !== "New " + nodeToUse.payload.node.type && nodeToUse.payload.node.name !== "My " + nodeToUse.payload.node.type) {
|
||||
nodeToUse = thisObject.payload.node.payload.referenceParent.payload.parentNode
|
||||
if (nodeToUse !== undefined && nodeToUse.payload !== undefined && nodeToUse.payload.node.name !== "New " + nodeToUse.payload.node.type && nodeToUse.payload.node.name !== "My " + nodeToUse.payload.node.type) {
|
||||
nodeToUse = thisObject.payload.node.payload.referenceParent.payload.parentNode.payload.parentNode
|
||||
if (nodeToUse !== undefined && nodeToUse.payload !== undefined && nodeToUse.payload.node.name !== "New " + nodeToUse.payload.node.type && nodeToUse.payload.node.name !== "My " + nodeToUse.payload.node.type) {
|
||||
nodeToUse = thisObject.payload.node.payload.referenceParent.payload.parentNode.payload.parentNode.payload.parentNode
|
||||
if (nodeToUse !== undefined && nodeToUse.payload !== undefined && nodeToUse.payload.node.name !== "New " + nodeToUse.payload.node.type && nodeToUse.payload.node.name !== "My " + nodeToUse.payload.node.type) {
|
||||
thisObject.payload.title = thisObject.payload.title + separator + nodeToUse.payload.title
|
||||
thisObject.payload.node.name = thisObject.payload.node.name + separator + nodeToUse.payload.node.name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
default: {
|
||||
if (titleReference.indexOf('Use Child @') === 0) {
|
||||
let propertyName = titleReference.substring(titleReference.indexOf('@') + 1, titleReference.length)
|
||||
|
||||
Reference in new issue
Block a user