diff options
author | Regis <boudinot.regis@yahoo.com> | 2017-01-06 15:34:47 -0700 |
---|---|---|
committer | Regis <boudinot.regis@yahoo.com> | 2017-01-06 15:34:47 -0700 |
commit | a812a915109d43b4777e6ecb06ada687a0025100 (patch) | |
tree | f4d690273405de31022adc90cf677fb04493dc92 | |
parent | 9c5524dfda86e96fbae39f0777883a9efaecf2e1 (diff) | |
download | gitlab-ce-a812a915109d43b4777e6ecb06ada687a0025100.tar.gz |
fix flash and request logic in stage
-rw-r--r-- | app/assets/javascripts/vue_pipelines_index/stage.js.es6 | 8 |
1 files 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 = ''; |