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
0
Merge Requests
0
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
Tatuya Kamada
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
app/assets/javascripts/vue_pipelines_index/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