Commit 1f992835 authored by Regis's avatar Regis

status dynamic

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