Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7c2299a0
Commit
7c2299a0
authored
Mar 12, 2021
by
Sarah GP
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Basic link removal
parent
e03ab73f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
app/assets/javascripts/pipelines/components/graph/graph_component.vue
...avascripts/pipelines/components/graph/graph_component.vue
+1
-0
app/assets/javascripts/pipelines/components/graph_shared/links_layer.vue
...scripts/pipelines/components/graph_shared/links_layer.vue
+21
-0
No files found.
app/assets/javascripts/pipelines/components/graph/graph_component.vue
View file @
7c2299a0
...
...
@@ -158,6 +158,7 @@ export default {
:container-measurements=
"measurements"
:highlighted-job=
"hoveredJobName"
:metrics-config=
"metricsConfig"
:never-show-links=
"true"
default-link-color=
"gl-stroke-transparent"
@
error=
"onError"
@
highlightedJobsChange=
"updateHighlightedJobs"
...
...
app/assets/javascripts/pipelines/components/graph_shared/links_layer.vue
View file @
7c2299a0
...
...
@@ -20,6 +20,11 @@ export default {
type
:
Array
,
required
:
true
,
},
neverShowLinks
:
{
type
:
Boolean
,
required
:
false
,
default
:
false
},
},
data
()
{
return
{
...
...
@@ -43,9 +48,25 @@ export default {
},
0
);
},
showAlert
()
{
/*
This is a hard override that allows us to turn off the links without
needing to remove the component entirely for iteration or based on graph type.
*/
if
(
this
.
neverShowLinks
)
{
return
false
;
}
return
!
this
.
containerZero
&&
!
this
.
showLinkedLayers
&&
!
this
.
alertDismissed
;
},
showLinkedLayers
()
{
/*
This is a hard override that allows us to turn off the links without
needing to remove the component entirely for iteration or based on graph type.
*/
if
(
this
.
neverShowLinks
)
{
return
false
;
}
return
(
!
this
.
containerZero
&&
(
this
.
showLinksOverride
||
this
.
numGroups
<
this
.
$options
.
MAX_GROUPS
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment