Commit 0bf45519 authored by Filipa Lacerda's avatar Filipa Lacerda

Fix conflicts for ...

Fix conflicts for  app/assets/javascripts/vue_merge_request_widget/components/mr_widget_pipeline.vue
parent 2ee16104
<script>
<<<<<<< HEAD
/* eslint-disable vue/require-default-prop */
import PipelineStage from '~/pipelines/components/stage.vue';
import CiIcon from '~/vue_shared/components/ci_icon.vue';
import Icon from '~/vue_shared/components/icon.vue';
import LinkedPipelinesMiniList from 'ee/vue_shared/components/linked_pipelines_mini_list.vue';
export default {
name: 'MRWidgetPipeline',
components: {
PipelineStage,
CiIcon,
Icon,
LinkedPipelinesMiniList,
=======
/* eslint-disable vue/require-default-prop */
import PipelineStage from '~/pipelines/components/stage.vue';
import CiIcon from '~/vue_shared/components/ci_icon.vue';
import Icon from '~/vue_shared/components/icon.vue';
import LinkedPipelinesMiniList from 'ee/vue_shared/components/linked_pipelines_mini_list.vue';
export default {
name: 'MRWidgetPipeline',
......@@ -25,12 +11,12 @@ export default {
PipelineStage,
CiIcon,
Icon,
LinkedPipelinesMiniList,
},
props: {
pipeline: {
type: Object,
required: true,
>>>>>>> upstream/master
},
// This prop needs to be camelCase, html attributes are case insensive
// https://vuejs.org/v2/guide/components.html#camelCase-vs-kebab-case
......@@ -38,7 +24,11 @@ export default {
type: Boolean,
required: false,
},
<<<<<<< HEAD
ciStatus: {
type: String,
required: false,
},
},
computed: {
hasPipeline() {
return this.pipeline && Object.keys(this.pipeline).length > 0;
......@@ -72,33 +62,6 @@ export default {
const response = this.pipeline.triggered_by;
return response ? [response] : [];
},
=======
ciStatus: {
type: String,
required: false,
>>>>>>> upstream/master
},
},
computed: {
hasPipeline() {
return this.pipeline && Object.keys(this.pipeline).length > 0;
},
hasCIError() {
return this.hasCi && !this.ciStatus;
},
status() {
return this.pipeline.details && this.pipeline.details.status
? this.pipeline.details.status
: {};
},
hasStages() {
return (
this.pipeline.details && this.pipeline.details.stages && this.pipeline.details.stages.length
);
},
hasCommitInfo() {
return this.pipeline.commit && Object.keys(this.pipeline.commit).length > 0;
},
},
};
</script>
......@@ -137,16 +100,6 @@ export default {
<template v-if="hasCommitInfo">
for
<<<<<<< HEAD
=======
<a
:href="pipeline.commit.commit_path"
class="commit-sha js-commit-link"
>
{{ pipeline.commit.short_id }}</a>.
</template>
>>>>>>> upstream/master
<a
:href="pipeline.commit.commit_path"
......
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