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
96b7865b
Commit
96b7865b
authored
Jan 17, 2017
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix UI behaviour - only make new calls when button is clicked and dropdown is not displayed
parent
28e77da9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
app/assets/javascripts/vue_pipelines_index/stage.js.es6
app/assets/javascripts/vue_pipelines_index/stage.js.es6
+8
-2
No files found.
app/assets/javascripts/vue_pipelines_index/stage.js.es6
View file @
96b7865b
...
@@ -11,7 +11,13 @@
...
@@ -11,7 +11,13 @@
},
},
props: ['stage', 'svgs', 'match'],
props: ['stage', 'svgs', 'match'],
methods: {
methods: {
fetchBuilds() {
fetchBuilds(e) {
const areaExpanded = e.currentTarget.attributes['aria-expanded'];
console.log('HIT');
if (areaExpanded && (areaExpanded.textContent === 'true')) return null;
return this.$http.get(this.stage.dropdown_path)
return this.$http.get(this.stage.dropdown_path)
.then((response) => {
.then((response) => {
this.builds = JSON.parse(response.body).html;
this.builds = JSON.parse(response.body).html;
...
@@ -47,7 +53,7 @@
...
@@ -47,7 +53,7 @@
template: `
template: `
<div>
<div>
<button
<button
@click='fetchBuilds'
@click='fetchBuilds
($event)
'
:class="triggerButtonClass"
:class="triggerButtonClass"
:title='stage.title'
:title='stage.title'
data-placement="top"
data-placement="top"
...
...
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