Commit 6a110c00 authored by Regis's avatar Regis

hook up new API key values to stage dropdown mini graph in vue

parent 59e1b26a
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
props: ['stage', 'svgs', 'match'], props: ['stage', 'svgs', 'match'],
methods: { methods: {
fetchBuilds() { fetchBuilds() {
this.$http.get(this.endpoint) this.$http.get(this.stage.dropdown_path)
.then((response) => { .then((response) => {
this.request = true; this.request = true;
this.builds = JSON.parse(response.body).html; this.builds = JSON.parse(response.body).html;
...@@ -34,12 +34,6 @@ ...@@ -34,12 +34,6 @@
if (this.request) return 'js-builds-dropdown-container'; if (this.request) return 'js-builds-dropdown-container';
return 'js-builds-dropdown-loading builds-dropdown-loading'; return 'js-builds-dropdown-loading builds-dropdown-loading';
}, },
endpoint() {
return '/gitlab-org/gitlab-shell/pipelines/121/stage?stage=deploy';
},
stageTitle() {
return 'deploy: running';
},
buildStatus() { buildStatus() {
return `Build: ${this.stage.status.label}`; return `Build: ${this.stage.status.label}`;
}, },
...@@ -63,7 +57,7 @@ ...@@ -63,7 +57,7 @@
@click='fetchBuilds' @click='fetchBuilds'
class="has-tooltip builds-dropdown js-builds-dropdown-button" class="has-tooltip builds-dropdown js-builds-dropdown-button"
data-placement="top" data-placement="top"
:title='stageTitle' :title='stage.title'
data-toggle="dropdown" data-toggle="dropdown"
type="button" type="button"
> >
......
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