blob: 2f45ef8a862a6ab9d0c0637ec5bcbf07f859bf9f (
plain)
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
|
<script>
import { GlEmptyState, GlLink, GlSprintf } from '@gitlab/ui';
import { helpPagePath } from '~/helpers/help_page_helper';
import { I18N_AGENTS_EMPTY_STATE } from '../constants';
export default {
i18n: I18N_AGENTS_EMPTY_STATE,
agentDocsUrl: helpPagePath('user/clusters/agent/index'),
components: {
GlEmptyState,
GlLink,
GlSprintf,
},
inject: ['emptyStateImage'],
};
</script>
<template>
<gl-empty-state :svg-path="emptyStateImage" :svg-height="100">
<template #title>
<gl-sprintf :message="$options.i18n.introText">
<template #link="{ content }">
<gl-link :href="$options.agentDocsUrl">
{{ content }}
</gl-link>
</template>
</gl-sprintf>
</template>
</gl-empty-state>
</template>
|