Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106-2024-07
frontend
Merge requests
!44
Fix/pipeline
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix/pipeline
fix/pipeline
into
main
Overview
0
Commits
21
Pipelines
1
Changes
1
Merged
Viktor Gunnar Grevskott
requested to merge
fix/pipeline
into
main
1 year ago
Overview
0
Commits
21
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
8e37650f
Prev
Next
Show latest version
1 file
+
2
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
8e37650f
Fixed error in configuration
· 8e37650f
Anders Høvik
authored
1 year ago
src/components/Configuration/Configuration.vue
+
2
−
1
Options
@@ -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