Commit 5838b160 authored by Regis's avatar Regis

rafactor logic for event handling

parent 75bddd01
......@@ -13,11 +13,7 @@
props: ['stage', 'svgs', 'match'],
methods: {
fetchBuilds() {
if (this.request) {
this.request = false;
this.builds = '';
return null;
}
if (this.request) return this.clearBuilds();
return this.$http.get(this.stage.dropdown_path)
.then((response) => {
......@@ -27,9 +23,9 @@
'Something went wrong on our end.',
));
},
clearState() {
this.request = false;
clearBuilds() {
this.builds = '';
this.request = false;
},
},
computed: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment