2017-04-27 10:06:17 -04:00
|
|
|
<script>
|
2017-11-23 07:04:03 -05:00
|
|
|
import environmentsMixin from '../mixins/environments_mixin';
|
|
|
|
import CIPaginationMixin from '../../vue_shared/mixins/ci_pagination_api_mixin';
|
|
|
|
|
|
|
|
export default {
|
2018-01-06 13:59:49 -05:00
|
|
|
mixins: [
|
|
|
|
environmentsMixin,
|
|
|
|
CIPaginationMixin,
|
|
|
|
],
|
2017-11-23 07:04:03 -05:00
|
|
|
props: {
|
|
|
|
endpoint: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
folderName: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
cssContainerClass: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
canCreateDeployment: {
|
|
|
|
type: Boolean,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
canReadEnvironment: {
|
|
|
|
type: Boolean,
|
|
|
|
required: true,
|
2017-05-12 18:02:41 -04:00
|
|
|
},
|
|
|
|
},
|
2017-11-23 07:04:03 -05:00
|
|
|
methods: {
|
|
|
|
successCallback(resp) {
|
|
|
|
this.saveData(resp);
|
|
|
|
},
|
2017-05-12 18:02:41 -04:00
|
|
|
},
|
2017-11-23 07:04:03 -05:00
|
|
|
};
|
2017-04-27 10:06:17 -04:00
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<div :class="cssContainerClass">
|
|
|
|
<div
|
|
|
|
class="top-area"
|
2018-01-06 13:59:49 -05:00
|
|
|
v-if="!isLoading"
|
|
|
|
>
|
2017-04-27 10:06:17 -04:00
|
|
|
|
|
|
|
<h4 class="js-folder-name environments-folder-name">
|
2018-01-06 14:54:45 -05:00
|
|
|
{{ s__("Environments|Environments") }} / <b>{{ folderName }}</b>
|
2017-04-27 10:06:17 -04:00
|
|
|
</h4>
|
|
|
|
|
2017-11-23 07:04:03 -05:00
|
|
|
<tabs
|
|
|
|
:tabs="tabs"
|
|
|
|
@onChangeTab="onChangeTab"
|
|
|
|
scope="environments"
|
2018-01-06 13:59:49 -05:00
|
|
|
/>
|
2017-02-12 09:55:18 -05:00
|
|
|
</div>
|
2017-11-23 07:04:03 -05:00
|
|
|
|
|
|
|
<container
|
|
|
|
:is-loading="isLoading"
|
|
|
|
:environments="state.environments"
|
|
|
|
:pagination="state.paginationInformation"
|
|
|
|
:can-create-deployment="canCreateDeployment"
|
|
|
|
:can-read-environment="canReadEnvironment"
|
|
|
|
@onChangePage="onChangePage"
|
|
|
|
/>
|
2017-04-27 10:06:17 -04:00
|
|
|
</div>
|
|
|
|
</template>
|