File tree 2 files changed +19
-0
lines changed
admin/app/components/quests/requirements
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export default class RequirementForm extends Component {
28
28
{ value: ' organization' , label: ' Organization' },
29
29
{ value: ' organizationLearner' , label: ' Organization Learner' },
30
30
{ value: ' campaignParticipations' , label: ' Participation' },
31
+ { value: ' cappedTubes' , label: ' Tubes cappés' },
31
32
];
32
33
}
33
34
Original file line number Diff line number Diff line change @@ -115,10 +115,28 @@ const campaignParticipationsConfiguration = new ObjectConfiguration({
115
115
fieldConfigurations : [ campaignParticipationsConfigField_targetProfileId , campaignParticipationsConfigField_status ] ,
116
116
} ) ;
117
117
118
+ const cappedTubeConfiguration_cappedTubes = new FieldConfiguration ( {
119
+ name : 'cappedTubes' ,
120
+ type : FieldConfiguration . TYPES . STRING ,
121
+ refersToAnArray : true ,
122
+ } ) ;
123
+ const cappedTubeConfiguration_threshold = new FieldConfiguration ( {
124
+ name : 'threshold' ,
125
+ type : FieldConfiguration . TYPES . NUMBER ,
126
+ refersToAnArray : false ,
127
+ } ) ;
128
+
129
+ const cappedTubeConfiguration = new ObjectConfiguration ( {
130
+ name : 'cappedTubes' ,
131
+ refersToAnArray : false ,
132
+ fieldConfigurations : [ cappedTubeConfiguration_cappedTubes , cappedTubeConfiguration_threshold ] ,
133
+ } ) ;
134
+
118
135
const objectConfigurations = {
119
136
[ organizationConfiguration . name ] : organizationConfiguration ,
120
137
[ organizationLearnerConfiguration . name ] : organizationLearnerConfiguration ,
121
138
[ campaignParticipationsConfiguration . name ] : campaignParticipationsConfiguration ,
139
+ [ cappedTubeConfiguration . name ] : cappedTubeConfiguration ,
122
140
} ;
123
141
124
142
export { objectConfigurations } ;
You can’t perform that action at this time.
0 commit comments