2019-07-07 11:18:12 +05:30
|
|
|
<script>
|
2021-02-22 17:27:13 +05:30
|
|
|
import { GlLink, GlAlert } from '@gitlab/ui';
|
|
|
|
import { __, s__ } from '~/locale';
|
2019-07-07 11:18:12 +05:30
|
|
|
/**
|
|
|
|
* Renders Unmet Prerequisites block for job's view.
|
|
|
|
*/
|
|
|
|
export default {
|
2021-02-22 17:27:13 +05:30
|
|
|
i18n: {
|
|
|
|
failMessage: s__(
|
|
|
|
'Job|This job failed because the necessary resources were not successfully created.',
|
|
|
|
),
|
|
|
|
moreInformation: __('More information'),
|
|
|
|
},
|
2019-07-07 11:18:12 +05:30
|
|
|
components: {
|
|
|
|
GlLink,
|
2021-02-22 17:27:13 +05:30
|
|
|
GlAlert,
|
2019-07-07 11:18:12 +05:30
|
|
|
},
|
|
|
|
props: {
|
|
|
|
helpPath: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<template>
|
2021-02-22 17:27:13 +05:30
|
|
|
<gl-alert variant="danger" class="gl-mt-3" :dismissible="false">
|
|
|
|
{{ $options.i18n.failMessage }}
|
|
|
|
<gl-link :href="helpPath">
|
|
|
|
{{ $options.i18n.moreInformation }}
|
|
|
|
</gl-link>
|
|
|
|
</gl-alert>
|
2019-07-07 11:18:12 +05:30
|
|
|
</template>
|