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

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

47 lines
1.1 KiB
Vue
Raw Normal View History

2018-03-17 18:26:18 +05:30
<script>
2022-06-21 17:19:12 +05:30
import { s__ } from '~/locale';
import { ENVIRONMENTS_SCOPE } from '../constants';
2018-12-13 13:39:08 +05:30
export default {
name: 'EnvironmentsEmptyState',
props: {
helpPath: {
type: String,
required: true,
},
2022-06-21 17:19:12 +05:30
scope: {
type: String,
required: true,
},
},
computed: {
title() {
return this.$options.i18n.title[this.scope];
},
},
i18n: {
title: {
[ENVIRONMENTS_SCOPE.AVAILABLE]: s__("Environments|You don't have any environments."),
[ENVIRONMENTS_SCOPE.STOPPED]: s__("Environments|You don't have any stopped environments."),
},
content: s__(
'Environments|Environments are places where code gets deployed, such as staging or production.',
),
link: s__('Environments|How do I create an environment?'),
2018-12-13 13:39:08 +05:30
},
};
2018-03-17 18:26:18 +05:30
</script>
<template>
2018-12-13 13:39:08 +05:30
<div class="empty-state">
<div class="text-content">
2022-04-04 11:22:00 +05:30
<h4 class="js-blank-state-title">
2022-06-21 17:19:12 +05:30
{{ title }}
2018-12-13 13:39:08 +05:30
</h4>
2022-04-04 11:22:00 +05:30
<p>
2022-06-21 17:19:12 +05:30
{{ $options.i18n.content }}
<a :href="helpPath"> {{ $options.i18n.link }} </a>
2018-03-17 18:26:18 +05:30
</p>
</div>
</div>
</template>