summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/environments/environments_bundle.js.es6
blob: 20eee7976ec826304e745029948b3fc5522e08aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//= require vue
//= require_tree ./stores/
//= require ./components/environment
//= require ./vue_resource_interceptor


$(() => {
  window.gl = window.gl || {};

  if (window.gl.EnvironmentsListApp) {
    window.gl.EnvironmentsListApp.$destroy(true);
  }
  const Store = window.gl.environmentsList.EnvironmentsStore;

  window.gl.EnvironmentsListApp = new window.gl.environmentsList.EnvironmentsComponent({
    el: document.querySelector('#environments-list-view'),
    propsData: {
      store: Store.create(),
    },
  });
});