BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1e237c9f
Commit
1e237c9f
authored
Dec 16, 2016
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
computed for actions and artifacts
parent
b08f9292
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
pipeline_actions.js.es6
...s/javascripts/vue_pipelines_index/pipeline_actions.js.es6
+10
-2
No files found.
app/assets/javascripts/vue_pipelines_index/pipeline_actions.js.es6
View file @
1e237c9f
...
...
@@ -6,6 +6,14 @@
props: [
'pipeline',
],
computed: {
actions() {
return this.pipeline.details.manual_actions.length > 0;
},
artifacts() {
return this.pipeline.details.artifacts.length > 0;
},
},
methods: {
download(name) {
return `Download ${name} artifacts`;
...
...
@@ -17,7 +25,7 @@
<div class="btn-group inline">
<div class="btn-group">
<a
v-if='
pipeline.details.manual_actions.length > 0
'
v-if='
actions
'
class="dropdown-toggle btn btn-default js-pipeline-dropdown-manual-actions"
data-toggle="dropdown"
title="Manual build"
...
...
@@ -54,7 +62,7 @@
</div>
<div class="btn-group">
<a
v-if='
pipeline.details.artifacts.length > 0
'
v-if='
artifacts
'
class="dropdown-toggle btn btn-default build-artifacts js-pipeline-dropdown-download"
data-toggle="dropdown"
type="button"
...
...
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