fix flash and request logic in stage

This commit is contained in:
Regis 2017-01-06 15:34:47 -07:00
parent 9c5524dfda
commit a812a91510

View file

@ -19,9 +19,11 @@
.then((response) => {
this.request = true;
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() {
this.builds = '';