Commit 1c4fee81 authored by Emily Ring's avatar Emily Ring

Combine environments_folder_mixin with component

parent f1262ebd
<script> <script>
import folderMixin from '../mixins/environments_folder_view_mixin';
import environmentsMixin from '../mixins/environments_mixin'; import environmentsMixin from '../mixins/environments_mixin';
import CIPaginationMixin from '../../vue_shared/mixins/ci_pagination_api_mixin'; import CIPaginationMixin from '../../vue_shared/mixins/ci_pagination_api_mixin';
import StopEnvironmentModal from '../components/stop_environment_modal.vue'; import StopEnvironmentModal from '../components/stop_environment_modal.vue';
...@@ -11,7 +10,7 @@ export default { ...@@ -11,7 +10,7 @@ export default {
DeleteEnvironmentModal, DeleteEnvironmentModal,
}, },
mixins: [environmentsMixin, CIPaginationMixin, folderMixin], mixins: [environmentsMixin, CIPaginationMixin],
props: { props: {
endpoint: { endpoint: {
...@@ -30,6 +29,31 @@ export default { ...@@ -30,6 +29,31 @@ export default {
type: Boolean, type: Boolean,
required: true, required: true,
}, },
canaryDeploymentFeatureId: {
type: String,
required: false,
default: '',
},
showCanaryDeploymentCallout: {
type: Boolean,
required: false,
default: false,
},
userCalloutsPath: {
type: String,
required: false,
default: '',
},
lockPromotionSvgPath: {
type: String,
required: false,
default: '',
},
helpCanaryDeploymentsPath: {
type: String,
required: false,
default: '',
},
}, },
methods: { methods: {
successCallback(resp) { successCallback(resp) {
......
export default {
props: {
canaryDeploymentFeatureId: {
type: String,
required: false,
default: '',
},
showCanaryDeploymentCallout: {
type: Boolean,
required: false,
default: false,
},
userCalloutsPath: {
type: String,
required: false,
default: '',
},
lockPromotionSvgPath: {
type: String,
required: false,
default: '',
},
helpCanaryDeploymentsPath: {
type: String,
required: false,
default: '',
},
},
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment