BigW Consortium Gitlab

Commit 07c6c8e0 by Regis

stages render correctly and use new status object

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