debian-mirror-gitlab/app/assets/javascripts/terraform/components/empty_state.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
789 B
Vue
Raw Normal View History

2021-01-29 00:20:46 +05:30
<script>
2022-06-21 17:19:12 +05:30
import { GlEmptyState, GlLink } from '@gitlab/ui';
import { s__ } from '~/locale';
2021-10-27 15:23:28 +05:30
import { helpPagePath } from '~/helpers/help_page_helper';
2021-01-29 00:20:46 +05:30
export default {
2022-06-21 17:19:12 +05:30
i18n: {
title: s__("Terraform|Your project doesn't have any Terraform state files"),
description: s__('Terraform|How to use GitLab-managed Terraform state?'),
},
docsUrl: helpPagePath('user/infrastructure/iac/terraform_state'),
2021-01-29 00:20:46 +05:30
components: {
GlEmptyState,
GlLink,
},
props: {
image: {
type: String,
required: true,
},
},
};
</script>
<template>
2022-06-21 17:19:12 +05:30
<gl-empty-state :svg-path="image" :title="$options.i18n.title">
2021-01-29 00:20:46 +05:30
<template #description>
2022-06-21 17:19:12 +05:30
<gl-link :href="$options.docsUrl">{{ $options.i18n.description }}</gl-link>
2021-01-29 00:20:46 +05:30
</template>
</gl-empty-state>
</template>