BigW Consortium Gitlab

environments_bundle.js.es6 496 Bytes
Newer Older
1
//= require vue
Filipa Lacerda committed
2 3
//= require_tree ./stores/
//= require ./components/environment
4
//= require ./vue_resource_interceptor
5

Filipa Lacerda committed
6
$(() => {
7
  window.gl = window.gl || {};
8

9 10
  if (gl.EnvironmentsListApp) {
    gl.EnvironmentsListApp.$destroy(true);
11
  }
12
  const Store = gl.environmentsList.EnvironmentsStore;
13

14
  gl.EnvironmentsListApp = new gl.environmentsList.EnvironmentsComponent({
Filipa Lacerda committed
15
    el: document.querySelector('#environments-list-view'),
16

Filipa Lacerda committed
17 18
    propsData: {
      store: Store.create(),
19
    },
20

21
  });
22
});