From a812a915109d43b4777e6ecb06ada687a0025100 Mon Sep 17 00:00:00 2001 From: Regis Date: Fri, 6 Jan 2017 15:34:47 -0700 Subject: fix flash and request logic in stage --- app/assets/javascripts/vue_pipelines_index/stage.js.es6 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/vue_pipelines_index/stage.js.es6 b/app/assets/javascripts/vue_pipelines_index/stage.js.es6 index a196832d928..74a79dcedae 100644 --- a/app/assets/javascripts/vue_pipelines_index/stage.js.es6 +++ b/app/assets/javascripts/vue_pipelines_index/stage.js.es6 @@ -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 = ''; -- cgit v1.2.1