File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed
components/app/onboarding Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1111</template >
1212
1313<script >
14- /* eslint-disable vue/custom-event-name-casing */
1514export default {
1615 props: [' slide' ],
1716 methods: {
1817 nextSlide () {
19- this .$emit (' nextSlide ' );
18+ this .$emit (' next-slide ' );
2019 },
2120 },
2221};
Original file line number Diff line number Diff line change 1212</template >
1313
1414<script >
15- /* eslint-disable vue/custom-event-name-casing */
1615import SingleChoice from ' @/components/app/onboarding/SingleChoice.vue' ;
1716
1817export default {
@@ -42,14 +41,14 @@ export default {
4241 const { latitude } = position .coords ;
4342 const { longitude } = position .coords ;
4443 this .locationData = { lat: latitude, lng: longitude, ip: ' 0.0.0.0' };
45- this .$emit (' nextSlide ' );
44+ this .$emit (' next-slide ' );
4645 },
4746 async locationDenied () {
4847 let ipRequest = await fetch (' https://api.ipify.org?format=json' );
4948 ipRequest = await ipRequest .json ();
5049 const { ip } = ipRequest;
5150 this .locationData = { ip };
52- this .$emit (' nextSlide ' );
51+ this .$emit (' next-slide ' );
5352 },
5453 async sendLocation () {
5554 await this .$http .put (' /profile/edit/geolocation' , this .locationData );
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export default {
4242 this .bus .$emit (' clearForNextImage' );
4343 this .imageIndex += 1 ;
4444 } else {
45- this .$emit (' nextSlide ' );
45+ this .$emit (' next-slide ' );
4646 this .sendImagesToBackend ();
4747 }
4848 },
Original file line number Diff line number Diff line change 33 <div class =" onboarding-container" >
44 <Introduction
55 v-bind:slide =" {buttonText}"
6- v-on:nextSlide =" nextSlide"
6+ v-on:next-slide =" nextSlide"
77 v-if =" slideCurrent === 0" ></Introduction >
88 <SingleChoice
99 v-bind:slide =" {
6767 secondaryImageExplanation: 'Extra image',
6868 maxImagesAllowed: 5,
6969 buttonText}"
70- v-on:nextSlide =" nextSlide"
70+ v-on:next-slide =" nextSlide"
7171 v-if =" slideCurrent === 5" ></MainAndSecondaryImagesUpload >
7272 <Textblock
7373 v-bind:slide =" {
8787 count: slideCount,
8888 buttonText}"
8989 v-bind:bus =" bus"
90- v-on:nextSlide =" nextSlide"
90+ v-on:next-slide =" nextSlide"
9191 v-if =" slideCurrent === 7" ></Location >
9292 <SettingUp v-if =" slideCurrent === 8" ></SettingUp >
9393 </div >
You can’t perform that action at this time.
0 commit comments