debian-mirror-gitlab/app/assets/javascripts/environments/environment_details/empty_state.vue
2023-03-17 16:20:25 +05:30

34 lines
899 B
Vue

<script>
import { GlEmptyState, GlSprintf } from '@gitlab/ui';
import { translations, codeBlockPlaceholders, environmentsHelpPagePath } from './constants';
export default {
components: {
GlSprintf,
GlEmptyState,
},
translations,
actionButtonUrl: environmentsHelpPagePath,
placeholders: {
code: codeBlockPlaceholders,
},
};
</script>
<template>
<gl-empty-state
:title="$options.translations.emptyStateTitle"
:primary-button-text="$options.translations.emptyStatePrimaryButton"
:primary-button-link="$options.actionButtonUrl"
>
<template #description>
<gl-sprintf
:message="$options.translations.emptyStateDescription"
:placeholders="$options.placeholders.code"
>
<template #code="{ content }">
<code>{{ content }}</code>
</template>
</gl-sprintf>
</template>
</gl-empty-state>
</template>