File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,20 @@ export const App = {
84
84
<div class="columns">
85
85
<div class="column is-one-quarter">
86
86
<form id="filters" v-if="options.skills.length">
87
+ <label for="aim">
88
+ <strong>Aim</strong><br/>
89
+ I am interested in...
90
+ </label>
91
+ <VueSelect
92
+ v-model="filters.aim"
93
+ id="aim"
94
+ name="aim"
95
+ :options="options.aims"
96
+ label="name"
97
+ :reduce="aim => aim.code"
98
+ :clearable="false"/>
99
+ <br/>
100
+ <template v-if="filters.aim === 'contribute'">
87
101
<label for="skills">
88
102
<strong>Skill set</strong><br/>
89
103
Choose up to three skills that you would like to see issues for.
@@ -110,6 +124,7 @@ export const App = {
110
124
label="name"
111
125
:reduce="experience => experience.code"
112
126
:clearable="false"/>
127
+ </template>
113
128
</form>
114
129
<div v-else>
115
130
Loading filters, please wait...
@@ -137,13 +152,18 @@ export const App = {
137
152
data ( ) {
138
153
return {
139
154
options : {
155
+ aims : [
156
+ { name : 'Contributing code' , code : 'contribute' } ,
157
+ { name : 'Triaging issues' , code : 'triage' }
158
+ ] ,
140
159
skills : [ ] ,
141
160
experiences : [
142
161
{ name : 'Yes, it is' , code : 'beginner' } ,
143
162
{ name : 'No, it isn\'t' , code : 'experienced' }
144
163
]
145
164
} ,
146
165
filters : {
166
+ aim : 'contribute' ,
147
167
skills : [ ] ,
148
168
experience : 'experienced'
149
169
} ,
You can’t perform that action at this time.
0 commit comments