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

empty_state.vue « components « bridge « jobs « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bd07d8637194cb7cc86ac77019284ce97a0b2fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<script>
import { GlButton } from '@gitlab/ui';
import { __ } from '~/locale';

export default {
  name: 'BridgeEmptyState',
  i18n: {
    title: __('This job triggers a downstream pipeline'),
    linkBtnText: __('View downstream pipeline'),
  },
  components: {
    GlButton,
  },
  inject: {
    emptyStateIllustrationPath: {
      type: String,
      require: true,
    },
  },
  props: {
    downstreamPipelinePath: {
      type: String,
      required: false,
      default: undefined,
    },
  },
};
</script>

<template>
  <div class="gl-display-flex gl-flex-direction-column gl-align-items-center gl-mt-11">
    <img :src="emptyStateIllustrationPath" />
    <h1 class="gl-font-size-h1">{{ $options.i18n.title }}</h1>
    <gl-button
      v-if="downstreamPipelinePath"
      class="gl-mt-3"
      category="secondary"
      variant="confirm"
      size="medium"
      :href="downstreamPipelinePath"
    >
      {{ $options.i18n.linkBtnText }}
    </gl-button>
  </div>
</template>