Skip to content

Commit e9e196c

Browse files
committed
single/multiple choice component events kebab case
1 parent 8733b36 commit e9e196c

File tree

6 files changed

+11
-14
lines changed

6 files changed

+11
-14
lines changed

frontend/src/components/app/onboarding/Location.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
subheader: 'Would you like to share your location to get potential matches closer to you?',
99
options: ['yes', 'no'],
1010
buttonText: slide.buttonText}"
11-
v-on:saveInput="saveLocation"></SingleChoice>
11+
v-on:save-input="saveLocation"></SingleChoice>
1212
</template>
1313

1414
<script>

frontend/src/components/app/onboarding/MultipleChoice.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
</template>
2727

2828
<script>
29-
/* eslint-disable vue/custom-event-name-casing */
3029
import Vue from 'vue';
3130
import SelectionButton from '@/components/app/onboarding/SelectionButton.vue';
3231
@@ -41,7 +40,7 @@ export default {
4140
}),
4241
methods: {
4342
saveInput() {
44-
this.$emit('saveInput', this.slide.key, this.optionSelected);
43+
this.$emit('save-input', this.slide.key, this.optionSelected);
4544
this.optionSelected = [];
4645
},
4746
select(...args) {

frontend/src/components/app/onboarding/SelectionButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default {
4545
},
4646
},
4747
mounted() {
48-
this.bus.$on('deselectIfNot', this.deselectIfNot);
48+
this.bus.$on('deselect-if-not', this.deselectIfNot);
4949
},
5050
};
5151
</script>

frontend/src/components/app/onboarding/SingleChoice.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
</template>
2727

2828
<script>
29-
/* eslint-disable vue/custom-event-name-casing */
3029
import Vue from 'vue';
3130
import SelectionButton from '@/components/app/onboarding/SelectionButton.vue';
3231
@@ -41,13 +40,13 @@ export default {
4140
}),
4241
methods: {
4342
saveInput() {
44-
this.$emit('saveInput', this.slide.key, this.optionSelected);
43+
this.$emit('save-input', this.slide.key, this.optionSelected);
4544
this.optionSelected = null;
4645
},
4746
select(...args) {
4847
const [val] = args;
4948
this.optionSelected = val;
50-
this.bus.$emit('deselectIfNot', val);
49+
this.bus.$emit('deselect-if-not', val);
5150
},
5251
deselect() {
5352
this.optionSelected = '';

frontend/src/components/app/onboarding/Textblock.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@
2727
</template>
2828

2929
<script>
30-
/* eslint-disable vue/custom-event-name-casing */
3130
export default {
3231
props: ['slide'],
3332
data: () => ({
3433
textareaValue: '',
3534
}),
3635
methods: {
3736
saveInput() {
38-
this.$emit('saveInput', this.slide.key, this.textareaValue);
37+
this.$emit('save-input', this.slide.key, this.textareaValue);
3938
},
4039
},
4140
computed: {

frontend/src/views/app/Onboarding.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
header: 'My age',
1414
options: generateAllowedAge(),
1515
buttonText}"
16-
v-on:saveInput="saveInput"
16+
v-on:save-input="saveInput"
1717
v-if="slideCurrent === 1"></SingleChoice>
1818
<SingleChoice
1919
v-bind:slide="{
@@ -23,7 +23,7 @@
2323
header: 'I am',
2424
options: ['male', 'female', 'other'],
2525
buttonText}"
26-
v-on:saveInput="saveInput"
26+
v-on:save-input="saveInput"
2727
v-if="slideCurrent === 2"></SingleChoice>
2828
<SingleChoice
2929
v-bind:slide="{
@@ -33,7 +33,7 @@
3333
header: 'Sexuality',
3434
options: ['heterosexual', 'homosexual', 'bisexual', 'other'],
3535
buttonText}"
36-
v-on:saveInput="saveInput"
36+
v-on:save-input="saveInput"
3737
v-if="slideCurrent === 3"></SingleChoice>
3838
<MultipleChoice
3939
v-bind:slide="{
@@ -55,7 +55,7 @@
5555
minOptionsForSelection: 3,
5656
maxOptionsForSelection: 10,
5757
buttonText}"
58-
v-on:saveInput="saveInput"
58+
v-on:save-input="saveInput"
5959
v-if="slideCurrent === 4"></MultipleChoice>
6060
<MainAndSecondaryImagesUpload
6161
v-bind:slide="{
@@ -78,7 +78,7 @@
7878
maxTextareaLength: 200,
7979
placeholder: 'I am best described as ...',
8080
buttonText}"
81-
v-on:saveInput="saveInput"
81+
v-on:save-input="saveInput"
8282
v-if="slideCurrent === 6"></Textblock>
8383
<Location
8484
v-bind:slide="{

0 commit comments

Comments
 (0)