Handling of event addons

This commit is contained in:
2026-08-12 17:18:45 +02:00
parent 085299336e
commit 6e4e6b645c
74 changed files with 3072 additions and 95 deletions
@@ -1,5 +1,6 @@
<script setup>
import { watch } from "vue";
import {watch} from "vue";
import {nextVisibleFrom, STEP_REGISTRATION} from "../composables/stepFlow.js";
const props = defineProps({ formData: Object, event: Object })
const emit = defineEmits(['next', 'back'])
@@ -17,8 +18,7 @@ watch(
)
const nextStep = () => {
const hasAddons = (props.event.addons?.length ?? 0) > 0
emit('next', hasAddons ? 6 : 7)
emit('next', nextVisibleFrom(props.event, STEP_REGISTRATION))
}
</script>