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
Commits
fe125bb9
Commit
fe125bb9
authored
11 months ago
by
Victor Ekholt Gunrell Kaste
Browse files
Options
Downloads
Patches
Plain Diff
feat: Made it so only one panel can be opened at a time on roadmap.
parent
d351a91f
No related branches found
Branches containing commit
No related tags found
1 merge request
!15
feat: Made it so only one panel can be opened at a time on roadmap.
Pipeline
#274354
failed
11 months ago
Stage: install_dependencies
Stage: lint
Stage: build_project
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/SavingGoalComponents/SavingGoalRoadmap.vue
+12
-3
12 additions, 3 deletions
src/components/SavingGoalComponents/SavingGoalRoadmap.vue
with
12 additions
and
3 deletions
src/components/SavingGoalComponents/SavingGoalRoadmap.vue
+
12
−
3
View file @
fe125bb9
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment