diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
commit | 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch) | |
tree | dc4d20fe6064752c0bd323187252c77e0a89144b /app/assets/javascripts/jobs/components/job/unmet_prerequisites_block.vue | |
parent | 9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff) |
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'app/assets/javascripts/jobs/components/job/unmet_prerequisites_block.vue')
-rw-r--r-- | app/assets/javascripts/jobs/components/job/unmet_prerequisites_block.vue | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/assets/javascripts/jobs/components/job/unmet_prerequisites_block.vue b/app/assets/javascripts/jobs/components/job/unmet_prerequisites_block.vue new file mode 100644 index 00000000000..c9747ca9f02 --- /dev/null +++ b/app/assets/javascripts/jobs/components/job/unmet_prerequisites_block.vue @@ -0,0 +1,33 @@ +<script> +import { GlLink, GlAlert } from '@gitlab/ui'; +import { __, s__ } from '~/locale'; +/** + * Renders Unmet Prerequisites block for job's view. + */ +export default { + i18n: { + failMessage: s__( + 'Job|This job failed because the necessary resources were not successfully created.', + ), + moreInformation: __('More information'), + }, + components: { + GlLink, + GlAlert, + }, + props: { + helpPath: { + type: String, + required: true, + }, + }, +}; +</script> +<template> + <gl-alert variant="danger" class="gl-mt-3" :dismissible="false"> + {{ $options.i18n.failMessage }} + <gl-link :href="helpPath"> + {{ $options.i18n.moreInformation }} + </gl-link> + </gl-alert> +</template> |