55 v-bind:slide =" {buttonText}"
66 v-on:nextSlide =" nextSlide"
77 v-if =" slideCurrent === 0" ></Introduction >
8+ <SingleChoice
9+ v-bind:slide =" {
10+ key: 'age',
11+ current: slideCurrent,
12+ count: slideCount,
13+ header: 'My age',
14+ options: generateAllowedAge(),
15+ buttonText}"
16+ v-on:saveInput =" saveInput"
17+ v-if =" slideCurrent === 1" ></SingleChoice >
818 <SingleChoice
919 v-bind:slide =" {
1020 key: 'gender',
1424 options: ['Male', 'Female', 'Other'],
1525 buttonText}"
1626 v-on:saveInput =" saveInput"
17- v-if =" slideCurrent === 1 " ></SingleChoice >
27+ v-if =" slideCurrent === 2 " ></SingleChoice >
1828 <SingleChoice
1929 v-bind:slide =" {
2030 key: 'orientation',
2434 options: ['Heterosexual', 'Homosexual', 'Bi-sexual', 'Other'],
2535 buttonText}"
2636 v-on:saveInput =" saveInput"
27- v-if =" slideCurrent === 2 " ></SingleChoice >
37+ v-if =" slideCurrent === 3 " ></SingleChoice >
2838 <MultipleChoice
2939 v-bind:slide =" {
3040 key: 'interests' ,
4656 maxOptionsForSelection: 10,
4757 buttonText}"
4858 v-on:saveInput =" saveInput"
49- v-if =" slideCurrent === 3 " ></MultipleChoice >
59+ v-if =" slideCurrent === 4 " ></MultipleChoice >
5060 <MainAndSecondaryImagesUpload
5161 v-bind:slide =" {
5262 key: 'images',
5868 maxImagesAllowed: 5,
5969 buttonText}"
6070 v-on:saveInput =" saveInput"
61- v-if =" slideCurrent === 4 " ></MainAndSecondaryImagesUpload >
71+ v-if =" slideCurrent === 5 " ></MainAndSecondaryImagesUpload >
6272 <Textblock
6373 v-bind:slide =" {
6474 key: 'bio',
6979 placeholder: 'I am best described as ...',
7080 buttonText}"
7181 v-on:saveInput =" saveInput"
72- v-if =" slideCurrent === 5 " ></Textblock >
82+ v-if =" slideCurrent === 6 " ></Textblock >
7383 </div >
7484</template >
7585
7686<script >
87+ /* eslint-disable */
7788import Introduction from ' @/components/app/onboarding/Introduction.vue' ;
7889import SingleChoice from ' @/components/app/onboarding/SingleChoice.vue' ;
7990import MultipleChoice from ' @/components/app/onboarding/MultipleChoice.vue' ;
@@ -90,7 +101,7 @@ export default {
90101 },
91102 data : () => ({
92103 slideCurrent: 0 ,
93- slideCount: 5 ,
104+ slideCount: 6 ,
94105 userData: {},
95106 }),
96107 methods: {
@@ -108,6 +119,13 @@ export default {
108119 this .slideCurrent += 1 ;
109120 }
110121 },
122+ generateAllowedAge () {
123+ const ages = [];
124+ for (let i = 18 ; i < 100 ; i += 1 ) {
125+ ages .push (i);
126+ }
127+ return ages;
128+ },
111129 },
112130 computed: {
113131 buttonText () {
0 commit comments