Commit c6bb5954 authored by Bryce Johnson's avatar Bryce Johnson

Use implicit coercion to boolean of triggered and triggeredBy.

parent 197d622e
......@@ -32,10 +32,10 @@
return this.pipeline.details && this.pipeline.details.stages;
},
hasTriggered() {
return !!this.triggered.length;
return this.triggered.length;
},
hasTriggeredBy() {
return !!this.triggeredBy.length;
return this.triggeredBy.length;
},
linkedPipelinesClass() {
return this.hasTriggered || this.hasTriggeredBy ? 'has-linked-pipelines' : '';
......
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