Commit a812a915 authored by Regis's avatar Regis

fix flash and request logic in stage

parent 9c5524df
...@@ -19,9 +19,11 @@ ...@@ -19,9 +19,11 @@
.then((response) => { .then((response) => {
this.request = true; this.request = true;
this.builds = JSON.parse(response.body).html; this.builds = JSON.parse(response.body).html;
}, () => new Flash( }, () => {
'Something went wrong on our end.', const flash = new Flash('Something went wrong on our end.');
)); this.request = false;
return flash;
});
}, },
clearBuilds() { clearBuilds() {
this.builds = ''; this.builds = '';
......
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