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