debian-mirror-gitlab/app/assets/javascripts/terraform/components/empty_state.vue
2021-10-27 15:23:28 +05:30

36 lines
793 B
Vue

<script>
import { GlEmptyState, GlIcon, GlLink } from '@gitlab/ui';
import { helpPagePath } from '~/helpers/help_page_helper';
export default {
components: {
GlEmptyState,
GlIcon,
GlLink,
},
props: {
image: {
type: String,
required: true,
},
},
computed: {
docsUrl() {
return helpPagePath('user/infrastructure/terraform_state');
},
},
};
</script>
<template>
<gl-empty-state :svg-path="image" :title="s__('Terraform|Get started with Terraform')">
<template #description>
<p>
<gl-link :href="docsUrl" target="_blank"
>{{ s__('Terraform|How to use GitLab-managed Terraform State?') }}
<gl-icon name="external-link"
/></gl-link>
</p>
</template>
</gl-empty-state>
</template>