提交 96b7865b 编写于 作者: R Regis

fix UI behaviour - only make new calls when button is clicked and dropdown is not displayed

上级 28e77da9
......@@ -11,7 +11,13 @@
},
props: ['stage', 'svgs', 'match'],
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)
.then((response) => {
this.builds = JSON.parse(response.body).html;
......@@ -47,7 +53,7 @@
template: `
<div>
<button
@click='fetchBuilds'
@click='fetchBuilds($event)'
:class="triggerButtonClass"
:title='stage.title'
data-placement="top"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册