debian-mirror-gitlab/app/assets/javascripts/environments/folder/environments_folder_view.vue

75 lines
1.6 KiB
Vue
Raw Normal View History

2017-08-17 22:00:37 +05:30
<script>
2018-03-17 18:26:18 +05:30
import environmentsMixin from '../mixins/environments_mixin';
import CIPaginationMixin from '../../vue_shared/mixins/ci_pagination_api_mixin';
2018-11-18 11:00:15 +05:30
import StopEnvironmentModal from '../components/stop_environment_modal.vue';
2018-03-17 18:26:18 +05:30
export default {
2018-11-18 11:00:15 +05:30
components: {
StopEnvironmentModal,
},
2018-03-17 18:26:18 +05:30
mixins: [
environmentsMixin,
CIPaginationMixin,
],
2018-11-18 11:00:15 +05:30
2018-03-17 18:26:18 +05:30
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-09-10 17:25:29 +05:30
},
},
2018-03-17 18:26:18 +05:30
methods: {
successCallback(resp) {
this.saveData(resp);
},
2017-09-10 17:25:29 +05:30
},
2018-03-17 18:26:18 +05:30
};
2017-08-17 22:00:37 +05:30
</script>
<template>
<div :class="cssContainerClass">
2018-11-18 11:00:15 +05:30
<stop-environment-modal :environment="environmentInStopModal" />
2017-08-17 22:00:37 +05:30
<div
2018-03-17 18:26:18 +05:30
v-if="!isLoading"
2018-11-08 19:23:39 +05:30
class="top-area"
2018-03-17 18:26:18 +05:30
>
2017-08-17 22:00:37 +05:30
<h4 class="js-folder-name environments-folder-name">
2018-03-17 18:26:18 +05:30
{{ s__("Environments|Environments") }} / <b>{{ folderName }}</b>
2017-08-17 22:00:37 +05:30
</h4>
2018-03-17 18:26:18 +05:30
<tabs
:tabs="tabs"
scope="environments"
2018-11-08 19:23:39 +05:30
@onChangeTab="onChangeTab"
2018-03-17 18:26:18 +05:30
/>
2017-08-17 22:00:37 +05:30
</div>
2018-03-17 18:26:18 +05:30
<container
:is-loading="isLoading"
:environments="state.environments"
:pagination="state.paginationInformation"
:can-create-deployment="canCreateDeployment"
:can-read-environment="canReadEnvironment"
@onChangePage="onChangePage"
/>
2017-08-17 22:00:37 +05:30
</div>
</template>