Commit 1fc122ae authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Kamil Trzciński

Adds missing required for prop

Improves computed props
parent 2a12a3f7
......@@ -25,6 +25,7 @@ export default {
},
isLinkedPipeline: {
type: Boolean,
required: false,
default: false,
},
mediator: {
......@@ -48,8 +49,8 @@ export default {
hasTriggeredBy() {
return (
this.type !== this.$options.downstream &&
this.pipeline.triggered_by &&
this.pipeline.triggered_by != null
this.triggeredByPipelines &&
this.pipeline.triggered_by !== null
);
},
triggeredByPipelines() {
......@@ -58,7 +59,7 @@ export default {
hasTriggered() {
return (
this.type !== this.$options.upstream &&
this.pipeline.triggered &&
this.triggeredPipelines &&
this.pipeline.triggered.length > 0
);
},
......
......@@ -28,7 +28,7 @@ export default {
return this.pipeline.details.status;
},
projectName() {
return this.pipeline.project && this.pipeline.project.name;
return this.pipeline.project.name;
},
},
methods: {
......
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