debian-mirror-gitlab/app/assets/javascripts/environments/edit.js
2023-04-23 21:23:45 +05:30

19 lines
529 B
JavaScript

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,
protectedEnvironmentSettingsPath: el.dataset.protectedEnvironmentSettingsPath,
},
render(h) {
return h(EditEnvironment, {
props: {
environment: JSON.parse(el.dataset.environment),
},
});
},
});