Commit 9b5bbf0a authored by Regis's avatar Regis

add api call - get mock url next

parent 725ba04e
/* global Vue, gl */
/* global Vue, Flash, gl */
/* eslint-disable no-param-reassign */
((gl) => {
......@@ -23,6 +23,17 @@
spanClass() {
return `ci-status-icon ci-status-icon-${this.stage.status.group}`;
},
methods: {
fetchBuilds() {
this.$http.get(this.stage.status.endpoint)
.then((response) => {
Vue.set(this, 'builds', response.html);
Vue.set(this, 'response', true);
}, () => new Flash(
'Something went wrong on our end.',
));
},
},
},
template: `
<div class="stage-container mini-pipeline-graph">
......
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