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
62302141
Commit
62302141
authored
Jun 02, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move buildConnectorClass logic to template.
parent
349b1c50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
app/assets/javascripts/pipelines/components/graph/stage_column_component.vue
...pts/pipelines/components/graph/stage_column_component.vue
+3
-11
No files found.
app/assets/javascripts/pipelines/components/graph/stage_column_component.vue
View file @
62302141
...
@@ -8,42 +8,32 @@ export default {
...
@@ -8,42 +8,32 @@ export default {
type
:
String
,
type
:
String
,
required
:
true
,
required
:
true
,
},
},
jobs
:
{
jobs
:
{
type
:
Array
,
type
:
Array
,
required
:
true
,
required
:
true
,
},
},
isFirstColumn
:
{
isFirstColumn
:
{
type
:
Boolean
,
type
:
Boolean
,
required
:
false
,
required
:
false
,
default
:
false
,
default
:
false
,
},
},
stageConnectorClass
:
{
stageConnectorClass
:
{
type
:
String
,
type
:
String
,
required
:
false
,
required
:
false
,
default
:
''
,
default
:
''
,
},
},
},
},
components
:
{
components
:
{
jobComponent
,
jobComponent
,
dropdownJobComponent
,
dropdownJobComponent
,
},
},
methods
:
{
methods
:
{
firstJob
(
list
)
{
firstJob
(
list
)
{
return
list
[
0
];
return
list
[
0
];
},
},
jobId
(
job
)
{
jobId
(
job
)
{
return
`ci-badge-
${
job
.
name
}
`
;
return
`ci-badge-
${
job
.
name
}
`
;
},
},
buildConnnectorClass
(
index
)
{
return
index
===
0
&&
!
this
.
isFirstColumn
?
'
left-connector
'
:
''
;
},
},
},
};
};
</
script
>
</
script
>
...
@@ -60,7 +50,9 @@ export default {
...
@@ -60,7 +50,9 @@ export default {
v-for=
"(job, index) in jobs"
v-for=
"(job, index) in jobs"
:key=
"job.id"
:key=
"job.id"
class=
"build"
class=
"build"
:class=
"buildConnnectorClass(index)"
:class=
"
{
'left-connector': index === 0
&&
!isFirstColumn
}"
:id="jobId(job)">
:id="jobId(job)">
<div
class=
"curve"
></div>
<div
class=
"curve"
></div>
...
...
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