summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRegis <boudinot.regis@yahoo.com>2016-12-27 11:15:19 -0700
committerRegis <boudinot.regis@yahoo.com>2016-12-27 11:15:19 -0700
commit6a110c00b52b0e312f06249c5fd597f39ababe87 (patch)
tree0f8afd3490fa38b2bc4bd3c9999a2b2ba2488d70
parent59e1b26a2d5f4fa973c4fd02729c263e23edc5e6 (diff)
downloadgitlab-ce-6a110c00b52b0e312f06249c5fd597f39ababe87.tar.gz
hook up new API key values to stage dropdown mini graph in vue
-rw-r--r--app/assets/javascripts/vue_pipelines_index/stage.js.es610
1 files changed, 2 insertions, 8 deletions
diff --git a/app/assets/javascripts/vue_pipelines_index/stage.js.es6 b/app/assets/javascripts/vue_pipelines_index/stage.js.es6
index b7da52ad01b..026fba80ca2 100644
--- a/app/assets/javascripts/vue_pipelines_index/stage.js.es6
+++ b/app/assets/javascripts/vue_pipelines_index/stage.js.es6
@@ -13,7 +13,7 @@
props: ['stage', 'svgs', 'match'],
methods: {
fetchBuilds() {
- this.$http.get(this.endpoint)
+ this.$http.get(this.stage.dropdown_path)
.then((response) => {
this.request = true;
this.builds = JSON.parse(response.body).html;
@@ -34,12 +34,6 @@
if (this.request) return 'js-builds-dropdown-container';
return 'js-builds-dropdown-loading builds-dropdown-loading';
},
- endpoint() {
- return '/gitlab-org/gitlab-shell/pipelines/121/stage?stage=deploy';
- },
- stageTitle() {
- return 'deploy: running';
- },
buildStatus() {
return `Build: ${this.stage.status.label}`;
},
@@ -63,7 +57,7 @@
@click='fetchBuilds'
class="has-tooltip builds-dropdown js-builds-dropdown-button"
data-placement="top"
- :title='stageTitle'
+ :title='stage.title'
data-toggle="dropdown"
type="button"
>