Commit 349b1c50 authored by Bryce Johnson's avatar Bryce Johnson

Move flatConnectorClass logic to template.

parent 04ef39c2
...@@ -24,11 +24,6 @@ export default { ...@@ -24,11 +24,6 @@ export default {
return `graph-position-${this.graphPosition}`; return `graph-position-${this.graphPosition}`;
}, },
}, },
methods: {
flatConnectorClass(index) {
return (index === 0 && this.graphPosition === 'right') ? 'flat-connector-before' : '';
},
},
}; };
</script> </script>
...@@ -42,7 +37,9 @@ export default { ...@@ -42,7 +37,9 @@ export default {
<ul> <ul>
<linked-pipeline <linked-pipeline
v-for="(pipeline, index) in linkedPipelines" v-for="(pipeline, index) in linkedPipelines"
:class="flatConnectorClass(index)" :class="{
'flat-connector-before': index === 0 && graphPosition === 'right'
}"
:key="pipeline.id" :key="pipeline.id"
:pipeline-id="pipeline.id" :pipeline-id="pipeline.id"
:project-name="pipeline.project.name" :project-name="pipeline.project.name"
......
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