2018-03-17 18:26:18 +05:30
|
|
|
<script>
|
2018-12-13 13:39:08 +05:30
|
|
|
export default {
|
|
|
|
name: 'EnvironmentsEmptyState',
|
|
|
|
props: {
|
|
|
|
newPath: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
2018-03-17 18:26:18 +05:30
|
|
|
},
|
2018-12-13 13:39:08 +05:30
|
|
|
canCreateEnvironment: {
|
|
|
|
type: Boolean,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
helpPath: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
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">
|
|
|
|
<h4 class="blank-state-title js-blank-state-title">
|
|
|
|
{{ s__("Environments|You don't have any environments right now") }}
|
|
|
|
</h4>
|
2018-03-17 18:26:18 +05:30
|
|
|
<p class="blank-state-text">
|
2018-12-23 12:14:25 +05:30
|
|
|
{{
|
|
|
|
s__(`Environments|Environments are places where
|
|
|
|
code gets deployed, such as staging or production.`)
|
|
|
|
}}
|
|
|
|
<a :href="helpPath"> {{ s__('Environments|Read more about environments') }} </a>
|
2018-03-17 18:26:18 +05:30
|
|
|
</p>
|
|
|
|
|
2018-12-13 13:39:08 +05:30
|
|
|
<div class="text-center">
|
|
|
|
<a
|
|
|
|
v-if="canCreateEnvironment"
|
|
|
|
:href="newPath"
|
|
|
|
class="btn btn-success js-new-environment-button"
|
|
|
|
>
|
2018-12-23 12:14:25 +05:30
|
|
|
{{ s__('Environments|New environment') }}
|
2018-12-13 13:39:08 +05:30
|
|
|
</a>
|
|
|
|
</div>
|
2018-03-17 18:26:18 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|