BigW Consortium Gitlab

Commit 1f992835 by Regis

status dynamic

parent 13798c00
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
((gl) => { ((gl) => {
gl.VueStatusScope = Vue.extend({ gl.VueStatusScope = Vue.extend({
props: [ props: [
'pipeline', 'pipeline', 'svgs', 'match',
], ],
computed: { computed: {
cssClasses() { cssClasses() {
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
return cssObject; return cssObject;
}, },
svg() { svg() {
return document return this.svgs[this.match(this.pipeline.details.status.icon)];
.querySelector(`.${this.pipeline.details.status.icon}`).innerHTML;
}, },
}, },
template: ` template: `
......
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