Skip to content

Commit 1f6585b

Browse files
change emits names
1 parent e3d4f56 commit 1f6585b

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

components/CrsSelector.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<script setup>
2727
const emit = defineEmits([
2828
"update_values",
29-
"increment_current_step",
30-
"decrement_current_step",
29+
"increment_step",
30+
"decrement_step",
3131
])
3232
3333
const props = defineProps({
@@ -50,7 +50,7 @@
5050
[key_to_update]: crs,
5151
}
5252
emit("update_values", keys_values_object)
53-
emit("increment_current_step")
53+
emit("increment_step")
5454
})
5555
5656
function get_selected_crs(crs_code) {

components/ExtensionSelector.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
<script setup>
4242
const emit = defineEmits([
4343
"update_values",
44-
"increment_current_step",
45-
"decrement_current_step",
44+
"increment_step",
45+
"decrement_step",
4646
])
4747
4848
const props = defineProps({
@@ -78,7 +78,7 @@
7878
output_extension,
7979
}
8080
emit("update_values", keys_values_object)
81-
emit("increment_current_step")
81+
emit("increment_step")
8282
}
8383
}
8484

components/FileSelector.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<script setup>
1111
const emit = defineEmits([
1212
"update_values",
13-
"increment_current_step",
14-
"decrement_current_step",
13+
"increment_step",
14+
"decrement_step",
1515
])
1616
1717
const props = defineProps({
@@ -31,7 +31,7 @@
3131
function files_uploaded_event(value) {
3232
if (value.length) {
3333
emit("update_values", { files: value })
34-
emit("increment_current_step")
34+
emit("increment_step")
3535
}
3636
}
3737

components/FileUploader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</template>
3232

3333
<script setup>
34-
const emit = defineEmits(["files_uploaded", "decrement_current_step"])
34+
const emit = defineEmits(["files_uploaded", "decrement_step"])
3535
3636
const props = defineProps({
3737
multiple: { type: Boolean, required: true },

components/MissingFilesSelector.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
<script setup>
4646
const emit = defineEmits([
4747
"update_values",
48-
"increment_current_step",
49-
"decrement_current_step",
48+
"increment_step",
49+
"decrement_step",
5050
])
5151
5252
const props = defineProps({
@@ -99,8 +99,8 @@
9999
.map((filename) => "." + filename.split(".").pop())
100100
.join(",")
101101
if (!has_missing_files.value) {
102-
console.log("MISSING FILESSELECTOR increment_current_step")
103-
emit("increment_current_step")
102+
console.log("MISSING FILESSELECTOR increment_step")
103+
emit("increment_step")
104104
}
105105
},
106106
},

components/ObjectSelector.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<script setup>
3434
import geode_objects from "@/assets/geode_objects"
3535
36-
const emit = defineEmits(["update_values", "increment_current_step"])
36+
const emit = defineEmits(["update_values", "increment_step"])
3737
3838
const props = defineProps({
3939
files: { type: Array, required: true },
@@ -65,7 +65,7 @@
6565
function set_geode_object(geode_object) {
6666
if (geode_object != "") {
6767
emit("update_values", { input_geode_object: geode_object })
68-
emit("increment_current_step")
68+
emit("increment_step")
6969
}
7070
}
7171

components/Step.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
:is="steps[step_index].component.component_name"
4343
v-bind="steps[step_index].component.component_options"
4444
@update_values="update_values_event"
45-
@increment_current_step="increment_current_step()"
46-
@decrement_current_step="decrement_current_step()"
45+
@increment_step="increment_step()"
46+
@decrement_step="decrement_step()"
4747
/>
4848
</v-col>
4949
</Transition>
@@ -70,11 +70,11 @@
7070
}
7171
}
7272
73-
function increment_current_step() {
73+
function increment_step() {
7474
stepper_tree.current_step_index++
7575
}
7676
77-
function decrement_current_step() {
77+
function decrement_step() {
7878
stepper_tree.current_step_index--
7979
}
8080
</script>

0 commit comments

Comments
 (0)