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
04ef39c2
Commit
04ef39c2
authored
Jun 02, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move linkedPipelineClass logic to template.
parent
81118dd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
app/assets/javascripts/pipelines/components/graph/graph_component.vue
...avascripts/pipelines/components/graph/graph_component.vue
+5
-16
No files found.
app/assets/javascripts/pipelines/components/graph/graph_component.vue
View file @
04ef39c2
...
...
@@ -63,19 +63,6 @@
className
=
'
left-margin
'
;
}
return
className
;
},
linkedPipelineClass
(
index
)
{
let
className
=
''
;
const
isFirstStage
=
index
===
0
;
const
isLastStage
=
index
===
this
.
graph
.
length
-
1
;
if
(
isFirstStage
&&
this
.
hasTriggeredBy
)
{
className
+=
'
has-upstream
'
;
}
else
if
(
isLastStage
&&
this
.
hasTriggered
)
{
className
+=
'
has-downstream
'
;
}
return
className
;
},
},
...
...
@@ -100,11 +87,13 @@
<ul
v-if=
"!isLoading"
class=
"stage-column-list"
:class=
"linkedPipelinesClass"
>
class=
"stage-column-list"
>
<stage-column-component
v-for=
"(stage, index) in graph"
:class=
"linkedPipelineClass(index)"
:class=
"
{
'has-upstream': index === 0
&&
hasTriggeredBy,
'has-downstream': index === graph.length - 1
&&
hasTriggered
}"
:title="capitalizeStageName(stage.name)"
:jobs="stage.groups"
:key="stage.name"
...
...
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