Commit 07c6c8e0 authored by Regis's avatar Regis

stages render correctly and use new status object

parent 67e46e6f
......@@ -6,16 +6,13 @@
props: ['stage'],
computed: {
buildStatus() {
return `Build: ${this.stage.status}`;
return `Build: ${this.stage.status.label}`;
},
tooltip() {
return `has-tooltip ci-status-icon-${this.stage.status}`;
return `has-tooltip ci-status-icon-${this.stage.status.label}`;
},
svg() {
return document
.querySelector(
`.icon_status_${this.stage.status}`,
).innerHTML;
return document.querySelector(`.${this.stage.status.icon}`).innerHTML;
},
},
template: `
......
......@@ -6,6 +6,14 @@
}
}
.ci-status-icon-passed {
color: $gl-success;
svg {
fill: $gl-success;
}
}
.ci-status-icon-failed {
color: $gl-danger;
......
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