Commit e236d988 authored by Filipa Lacerda's avatar Filipa Lacerda

Removes EE differences for environments index

parent 811641dd
import Vue from 'vue'; import Vue from 'vue';
import canaryCalloutMixin from 'ee_else_ce/environments/mixins/canary_callout_mixin';
import environmentsComponent from './components/environments_app.vue'; import environmentsComponent from './components/environments_app.vue';
import { parseBoolean } from '../lib/utils/common_utils'; import { parseBoolean } from '../lib/utils/common_utils';
import Translate from '../vue_shared/translate'; import Translate from '../vue_shared/translate';
// ee-only start
import CanaryCalloutMixin from 'ee/environments/mixins/canary_callout_mixin'; // eslint-disable-line import/order
// ee-only end
Vue.use(Translate); Vue.use(Translate);
export default () => export default () =>
...@@ -15,9 +12,7 @@ export default () => ...@@ -15,9 +12,7 @@ export default () =>
components: { components: {
environmentsComponent, environmentsComponent,
}, },
// ee-only start mixins: [canaryCalloutMixin],
mixins: [CanaryCalloutMixin],
// ee-only end
data() { data() {
const environmentsData = document.querySelector(this.$options.el).dataset; const environmentsData = document.querySelector(this.$options.el).dataset;
...@@ -39,13 +34,7 @@ export default () => ...@@ -39,13 +34,7 @@ export default () =>
cssContainerClass: this.cssContainerClass, cssContainerClass: this.cssContainerClass,
canCreateEnvironment: this.canCreateEnvironment, canCreateEnvironment: this.canCreateEnvironment,
canReadEnvironment: this.canReadEnvironment, canReadEnvironment: this.canReadEnvironment,
// ee-only start ...this.canaryCalloutProps,
canaryDeploymentFeatureId: this.canaryDeploymentFeatureId,
showCanaryDeploymentCallout: this.showCanaryDeploymentCallout,
userCalloutsPath: this.userCalloutsPath,
lockPromotionSvgPath: this.lockPromotionSvgPath,
helpCanaryDeploymentsPath: this.helpCanaryDeploymentsPath,
// ee-only end
}, },
}); });
}, },
......
export default {
computed: {
canaryCalloutProps() {},
},
};
...@@ -12,4 +12,15 @@ export default { ...@@ -12,4 +12,15 @@ export default {
helpCanaryDeploymentsPath: data.environmentsDataHelpCanaryDeploymentsPath, helpCanaryDeploymentsPath: data.environmentsDataHelpCanaryDeploymentsPath,
}; };
}, },
computed: {
canaryCalloutProps() {
return {
canaryDeploymentFeatureId: this.canaryDeploymentFeatureId,
showCanaryDeploymentCallout: this.showCanaryDeploymentCallout,
userCalloutsPath: this.userCalloutsPath,
lockPromotionSvgPath: this.lockPromotionSvgPath,
helpCanaryDeploymentsPath: this.helpCanaryDeploymentsPath,
};
},
},
}; };
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