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
!15
feat: Made it so only one panel can be opened at a time on roadmap.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat: Made it so only one panel can be opened at a time on roadmap.
savings-target-creation
into
main
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Victor Ekholt Gunrell Kaste
requested to merge
savings-target-creation
into
main
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
fe125bb9
1 commit,
1 year ago
1 file
+
12
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/components/SavingGoalComponents/SavingGoalRoadmap.vue
+
12
−
3
Options
@@ -25,7 +25,16 @@ export default {
},
methods
:
{
togglePanel
(
step
:
Step
)
{
step
.
showPanel
=
!
step
.
showPanel
;
if
(
step
.
showPanel
)
{
// If the clicked panel is already open, close it
step
.
showPanel
=
false
;
}
else
{
//Close all panels before opening new one
//Ensure only one panel open at a time
this
.
steps
.
forEach
((
s
)
=>
(
s
.
showPanel
=
false
));
//Open clicked on panel
step
.
showPanel
=
true
;
}
},
},
};
@@ -96,14 +105,14 @@ export default {
.timeline
>
li
:nth-child
(
even
)
{
position
:
relative
;
margin-bottom
:
50px
;
height
:
1
8
0px
;
height
:
1
0
0px
;
right
:
-100px
;
}
.timeline
>
li
:nth-child
(
odd
)
{
position
:
relative
;
margin-bottom
:
50px
;
height
:
1
8
0px
;
height
:
1
0
0px
;
left
:
-100px
;
}
Loading