All files / app/assets/javascripts/jobs/components/table jobs_table_empty_state.vue

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

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  2x 2x                                               18x                  
<script>
import { GlEmptyState } from '@gitlab/ui';
import { s__ } from '~/locale';
 
export default {
  i18n: {
    title: s__('Jobs|Use jobs to automate your tasks'),
    description: s__(
      'Jobs|Jobs are the building blocks of a GitLab CI/CD pipeline. Each job has a specific task, like testing code. To set up jobs in a CI/CD pipeline, add a CI/CD configuration file to your project.',
    ),
    buttonText: s__('Jobs|Create CI/CD configuration file'),
  },
  components: {
    GlEmptyState,
  },
  inject: {
    pipelineEditorPath: {
      default: '',
    },
    emptyStateSvgPath: {
      default: '',
    },
  },
};
</script>
 
<template>
  <gl-empty-state
    :title="$options.i18n.title"
    :description="$options.i18n.description"
    :svg-path="emptyStateSvgPath"
    :primary-button-link="pipelineEditorPath"
    :primary-button-text="$options.i18n.buttonText"
  />
</template>