debian-mirror-gitlab/app/assets/javascripts/terraform/components/empty_state.vue
2022-05-07 20:08:51 +05:30

36 lines
797 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/iac/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>