diff --git a/src/components/Configuration/Configuration.vue b/src/components/Configuration/Configuration.vue index a02e631534b19c2cebcbc3cb86beaac7ee1aa804..4f52d07e4f2aa9e2d66860a9683ad1f1198395a6 100644 --- a/src/components/Configuration/Configuration.vue +++ b/src/components/Configuration/Configuration.vue @@ -15,9 +15,10 @@ let percentage = ref(1/length); router.push(Object.keys(configurationSteps)[0]) let currentRoute = useRoute() let currentPath = currentRoute.fullPath +type ConfigurationStepPath = keyof typeof configurationSteps; // Sets the current path to a new path and updates progressbar -const onNewRouteEvent = (path: string) => { +const onNewRouteEvent = (path: ConfigurationStepPath) => { currentPath = path percentage.value = (1/length) * configurationSteps[path] }