BigW Consortium Gitlab

Commit e86c5570 by Regis

fix status for svg's on status column

parent e4efb135
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
cssClasses() { cssClasses() {
const cssObject = {}; const cssObject = {};
cssObject['ci-status'] = true; cssObject['ci-status'] = true;
cssObject[`ci-${this.pipeline.details.status}`] = true; cssObject[`ci-${this.pipeline.details.status.text}`] = true;
return cssObject; return cssObject;
}, },
svg() { svg() {
return document return document
.querySelector( .querySelector(
`.${this.pipeline.details.status}-icon-svg.hidden`, `.${this.pipeline.details.status.text}-icon-svg.hidden`,
).innerHTML; ).innerHTML;
}, },
}, },
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<a :href='pipeline.url'> <a :href='pipeline.url'>
<span :class='cssClasses'> <span :class='cssClasses'>
<span v-html='svg'></span> <span v-html='svg'></span>
<span>&nbsp;{{pipeline.details.status}}</span> <span>&nbsp;{{pipeline.details.status.text}}</span>
</span> </span>
</a> </a>
</td> </td>
......
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