All files / app/assets/javascripts/ide/components/pipelines empty_state.vue

100% Statements 6/6
100% Branches 0/0
100% Functions 2/2
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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  3x 3x 3x 3x                 1x                         12x                  
<script>
import { GlEmptyState } from '@gitlab/ui';
import { mapState } from 'vuex';
import { s__ } from '~/locale';
import { helpPagePath } from '~/helpers/help_page_helper';
 
export default {
  components: {
    GlEmptyState,
  },
  computed: {
    ...mapState(['pipelinesEmptyStateSvgPath']),
    ciHelpPagePath() {
      return helpPagePath('ci/quick_start/index.md');
    },
  },
  i18n: {
    title: s__('Pipelines|Build with confidence'),
    description: s__(`Pipelines|GitLab CI/CD can automatically build,
      test, and deploy your code. Let GitLab take care of time
      consuming tasks, so you can spend more time creating.`),
    primaryButtonText: s__('Pipelines|Get started with GitLab CI/CD'),
  },
};
</script>
 
<template>
  <gl-empty-state
    :title="$options.i18n.title"
    :svg-path="pipelinesEmptyStateSvgPath"
    :description="$options.i18n.description"
    :primary-button-text="$options.i18n.primaryButtonText"
    :primary-button-link="ciHelpPagePath"
  />
</template>