Skip to content
Snippets Groups Projects
Commit 8e37650f authored by Anders Høvik's avatar Anders Høvik
Browse files

Fixed error in configuration

parent 2f4b0b09
No related branches found
No related tags found
1 merge request!44Fix/pipeline
Pipeline #279810 passed with warnings
......@@ -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]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment