Welcome to mirror list, hosted at ThFree Co, Russian Federation.

edit.js « environments « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd6680f64bd83cf1c2315306e91cf1a199134519 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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,
    },
    render(h) {
      return h(EditEnvironment, {
        props: {
          environment: JSON.parse(el.dataset.environment),
        },
      });
    },
  });