Merge branch '10080-env-contaier' into 'master'
Removes ee differences for container.vue Closes gitlab-ee#10080 See merge request gitlab-org/gitlab-ce!25957
This commit is contained in:
commit
aaee3fb4a6
2 changed files with 44 additions and 5 deletions
|
@ -1,14 +1,16 @@
|
||||||
<script>
|
<script>
|
||||||
import { GlLoadingIcon } from '@gitlab/ui';
|
import { GlLoadingIcon } from '@gitlab/ui';
|
||||||
import tablePagination from '../../vue_shared/components/table_pagination.vue';
|
import TablePagination from '~/vue_shared/components/table_pagination.vue';
|
||||||
import environmentTable from '../components/environments_table.vue';
|
import containerMixin from 'ee_else_ce/environments/mixins/container_mixin';
|
||||||
|
import EnvironmentTable from '../components/environments_table.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
environmentTable,
|
EnvironmentTable,
|
||||||
tablePagination,
|
TablePagination,
|
||||||
GlLoadingIcon,
|
GlLoadingIcon,
|
||||||
},
|
},
|
||||||
|
mixins: [containerMixin],
|
||||||
props: {
|
props: {
|
||||||
isLoading: {
|
isLoading: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
@ -47,7 +49,15 @@ export default {
|
||||||
<slot name="emptyState"></slot>
|
<slot name="emptyState"></slot>
|
||||||
|
|
||||||
<div v-if="!isLoading && environments.length > 0" class="table-holder">
|
<div v-if="!isLoading && environments.length > 0" class="table-holder">
|
||||||
<environment-table :environments="environments" :can-read-environment="canReadEnvironment" />
|
<environment-table
|
||||||
|
:environments="environments"
|
||||||
|
:can-read-environment="canReadEnvironment"
|
||||||
|
:canary-deployment-feature-id="canaryDeploymentFeatureId"
|
||||||
|
:show-canary-deployment-callout="showCanaryDeploymentCallout"
|
||||||
|
:user-callouts-path="userCalloutsPath"
|
||||||
|
:lock-promotion-svg-path="lockPromotionSvgPath"
|
||||||
|
:help-canary-deployments-path="helpCanaryDeploymentsPath"
|
||||||
|
/>
|
||||||
|
|
||||||
<table-pagination
|
<table-pagination
|
||||||
v-if="pagination && pagination.totalPages > 1"
|
v-if="pagination && pagination.totalPages > 1"
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
canaryDeploymentFeatureId: {
|
||||||
|
type: String,
|
||||||
|
required: false,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
|
showCanaryDeploymentCallout: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
userCalloutsPath: {
|
||||||
|
type: String,
|
||||||
|
required: false,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
|
lockPromotionSvgPath: {
|
||||||
|
type: String,
|
||||||
|
required: false,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
|
helpCanaryDeploymentsPath: {
|
||||||
|
type: String,
|
||||||
|
required: false,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
Loading…
Reference in a new issue