Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ci/pipelines_page/components/pipelines_status_badge.vue')
-rw-r--r--app/assets/javascripts/ci/pipelines_page/components/pipelines_status_badge.vue51
1 files changed, 0 insertions, 51 deletions
diff --git a/app/assets/javascripts/ci/pipelines_page/components/pipelines_status_badge.vue b/app/assets/javascripts/ci/pipelines_page/components/pipelines_status_badge.vue
deleted file mode 100644
index 2da9141df8e..00000000000
--- a/app/assets/javascripts/ci/pipelines_page/components/pipelines_status_badge.vue
+++ /dev/null
@@ -1,51 +0,0 @@
-<script>
-import { TRACKING_CATEGORIES } from '~/ci/constants';
-import { CHILD_VIEW } from '~/ci/pipeline_details/constants';
-import CiBadgeLink from '~/vue_shared/components/ci_badge_link.vue';
-import Tracking from '~/tracking';
-import PipelinesTimeago from './time_ago.vue';
-
-export default {
- components: {
- CiBadgeLink,
- PipelinesTimeago,
- },
- mixins: [Tracking.mixin()],
- props: {
- pipeline: {
- type: Object,
- required: true,
- },
- viewType: {
- type: String,
- required: true,
- },
- },
- computed: {
- pipelineStatus() {
- return this.pipeline?.details?.status ?? {};
- },
- isChildView() {
- return this.viewType === CHILD_VIEW;
- },
- },
- methods: {
- trackClick() {
- this.track('click_ci_status_badge', { label: TRACKING_CATEGORIES.table });
- },
- },
-};
-</script>
-
-<template>
- <div>
- <ci-badge-link
- class="gl-mb-3"
- :status="pipelineStatus"
- :show-text="!isChildView"
- data-qa-selector="pipeline_commit_status"
- @ciStatusBadgeClick="trackClick"
- />
- <pipelines-timeago :pipeline="pipeline" />
- </div>
-</template>