Skip to content
Snippets Groups Projects

Fix/pipeline

Merged Viktor Gunnar Grevskott requested to merge fix/pipeline into main
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -15,9 +15,10 @@ let percentage = ref(1/length);
@@ -15,9 +15,10 @@ let percentage = ref(1/length);
router.push(Object.keys(configurationSteps)[0])
router.push(Object.keys(configurationSteps)[0])
let currentRoute = useRoute()
let currentRoute = useRoute()
let currentPath = currentRoute.fullPath
let currentPath = currentRoute.fullPath
 
type ConfigurationStepPath = keyof typeof configurationSteps;
// Sets the current path to a new path and updates progressbar
// Sets the current path to a new path and updates progressbar
const onNewRouteEvent = (path: string) => {
const onNewRouteEvent = (path: ConfigurationStepPath) => {
currentPath = path
currentPath = path
percentage.value = (1/length) * configurationSteps[path]
percentage.value = (1/length) * configurationSteps[path]
}
}
Loading