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 @@
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"
>
......
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