2021-10-27 15:23:28 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import EditEnvironment from './components/edit_environment.vue';
|
|
|
|
|
|
|
|
export default (el) =>
|
|
|
|
new Vue({
|
|
|
|
el,
|
|
|
|
provide: {
|
|
|
|
projectEnvironmentsPath: el.dataset.projectEnvironmentsPath,
|
|
|
|
updateEnvironmentPath: el.dataset.updateEnvironmentPath,
|
2023-04-23 21:23:45 +05:30
|
|
|
protectedEnvironmentSettingsPath: el.dataset.protectedEnvironmentSettingsPath,
|
2021-10-27 15:23:28 +05:30
|
|
|
},
|
|
|
|
render(h) {
|
|
|
|
return h(EditEnvironment, {
|
|
|
|
props: {
|
|
|
|
environment: JSON.parse(el.dataset.environment),
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|