Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idatt2106_2024_03_frontend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Scrum_Team_3
idatt2106_2024_03_frontend
Merge requests
!40
Milestone path backend connection
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Milestone path backend connection
milestonePathBackendConnection
into
master
Overview
0
Commits
2
Pipelines
1
Changes
5
Merged
Sverre Frogner Haugen
requested to merge
milestonePathBackendConnection
into
master
10 months ago
Overview
0
Commits
2
Pipelines
1
Changes
5
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
6b7a5421
2 commits,
10 months ago
5 files
+
24
−
23
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
src/components/MilestonePath/MilestonePath.vue
+
4
−
1
Options
@@ -9,7 +9,7 @@ const props = defineProps({
totalSaved
:
Number
});
const
totalNodes
=
ref
(
props
.
totalToSave
?
Math
.
ceil
(
props
.
totalToSave
/
250
)
:
0
);
const
totalNodes
=
ref
(
50
)
const
remainingNodes
=
ref
(
totalNodes
.
value
&&
props
.
totalSaved
&&
props
.
totalToSave
?
Math
.
ceil
(
totalNodes
.
value
-
(
totalNodes
.
value
*
(
props
.
totalSaved
/
props
.
totalToSave
)))
@@ -30,6 +30,9 @@ const nodes = Array.from({ length: totalNodes.value }, (_, index) => ({
const
nodeForegroundColors
=
ref
([
'
#CCCCCF
'
,
'
#A4ED45
'
,
'
#FCBD47
'
])
const
nodeBackgroundColors
=
ref
([
'
#A4A4A6
'
,
'
#6AB40A
'
,
'
#FFA600
'
])
console
.
log
(
"
Total to Save:
"
+
props
.
totalToSave
)
console
.
log
(
"
Total saved:
"
+
props
.
totalSaved
)
</
script
>
<
template
>
Loading