gitlab-org--gitlab-foss/app/assets/javascripts/pipeline_editor/components/lint/ci_lint_results_param.vue

27 lines
507 B
Vue

<script>
import { capitalizeFirstCharacter } from '~/lib/utils/text_utility';
import { __ } from '~/locale';
export default {
props: {
stage: {
type: String,
required: true,
},
jobName: {
type: String,
required: true,
},
},
computed: {
formatParameter() {
return __(`${capitalizeFirstCharacter(this.stage)} Job - ${this.jobName}`);
},
},
};
</script>
<template>
<span data-testid="ci-lint-parameter">{{ formatParameter }}</span>
</template>