summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipelines/components/graph/linked_pipelines_column_legacy.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/pipelines/components/graph/linked_pipelines_column_legacy.vue')
-rw-r--r--app/assets/javascripts/pipelines/components/graph/linked_pipelines_column_legacy.vue91
1 files changed, 0 insertions, 91 deletions
diff --git a/app/assets/javascripts/pipelines/components/graph/linked_pipelines_column_legacy.vue b/app/assets/javascripts/pipelines/components/graph/linked_pipelines_column_legacy.vue
deleted file mode 100644
index 39baeb6e1c3..00000000000
--- a/app/assets/javascripts/pipelines/components/graph/linked_pipelines_column_legacy.vue
+++ /dev/null
@@ -1,91 +0,0 @@
-<script>
-import { reportToSentry } from '../../utils';
-import { UPSTREAM } from './constants';
-import LinkedPipeline from './linked_pipeline.vue';
-
-export default {
- components: {
- LinkedPipeline,
- },
- props: {
- columnTitle: {
- type: String,
- required: true,
- },
- linkedPipelines: {
- type: Array,
- required: true,
- },
- type: {
- type: String,
- required: true,
- },
- projectId: {
- type: Number,
- required: true,
- },
- },
- computed: {
- columnClass() {
- const positionValues = {
- right: 'gl-ml-11',
- left: 'gl-mr-7',
- };
- return `graph-position-${this.graphPosition} ${positionValues[this.graphPosition]}`;
- },
- graphPosition() {
- return this.isUpstream ? 'left' : 'right';
- },
- isExpanded() {
- return this.pipeline?.isExpanded || false;
- },
- isUpstream() {
- return this.type === UPSTREAM;
- },
- },
- errorCaptured(err, _vm, info) {
- reportToSentry('linked_pipelines_column_legacy', `error: ${err}, info: ${info}`);
- },
- methods: {
- onPipelineClick(downstreamNode, pipeline, index) {
- this.$emit('linkedPipelineClick', pipeline, index, downstreamNode);
- },
- onDownstreamHovered(jobName) {
- this.$emit('downstreamHovered', jobName);
- },
- onPipelineExpandToggle(jobName, expanded) {
- // Highlighting only applies to downstream pipelines
- if (this.isUpstream) {
- return;
- }
-
- this.$emit('pipelineExpandToggle', jobName, expanded);
- },
- },
-};
-</script>
-
-<template>
- <div :class="columnClass" class="stage-column linked-pipelines-column">
- <div class="stage-name linked-pipelines-column-title">{{ columnTitle }}</div>
- <div v-if="isUpstream" class="cross-project-triangle"></div>
- <ul>
- <li v-for="(pipeline, index) in linkedPipelines" :key="pipeline.id">
- <linked-pipeline
- :class="{
- active: pipeline.isExpanded,
- 'left-connector': pipeline.isExpanded && graphPosition === 'left',
- }"
- :pipeline="pipeline"
- :column-title="columnTitle"
- :project-id="projectId"
- :type="type"
- :expanded="isExpanded"
- @pipelineClicked="onPipelineClick($event, pipeline, index)"
- @downstreamHovered="onDownstreamHovered"
- @pipelineExpandToggle="onPipelineExpandToggle"
- />
- </li>
- </ul>
- </div>
-</template>