File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ <h3 class="block text-base font-bold text-gray-700">Involvement</h3>
23
23
< template x-for ="item in involvementList " :key ="item.id ">
24
24
< div class ="flex items-start mt-1 ">
25
25
< div class ="flex items-center h-5 ">
26
- < input type ="checkbox " x-model =" involvement[ item.id] "
26
+ < input type ="checkbox " @click =" involvementSelected( item) "
27
27
class ="focus:ring-orange-500 h-4 w-4 text-orange-600 border-gray-300 rounded ">
28
28
</ div >
29
29
< div class ="ml-3 text-sm ">
@@ -137,6 +137,23 @@ <h3 class="block text-base font-bold text-gray-700">Reason</h3>
137
137
}
138
138
}
139
139
return false
140
+ } ,
141
+ involvementSelected ( item ) {
142
+ this . involvement [ item . id ] = ! this . involvement [ item . id ]
143
+ if ( ! this . form . title && ! this . form . type ) {
144
+
145
+ let value = this . involvementList . find ( ( x ) => {
146
+ return item . id == x . id
147
+ } )
148
+ if ( value . name === 'MVP' ) {
149
+ this . form . title = 'MVP'
150
+ this . form . type = 'MVP Activities'
151
+ }
152
+ else if ( value . name === 'Open Source' ) {
153
+ this . form . title = 'Open Source'
154
+ this . form . type = 'Open Source Activities'
155
+ }
156
+ }
140
157
}
141
158
}
142
159
}
You can’t perform that action at this time.
0 commit comments