summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/environments/environments_bundle.js.es6
blob: 867eba1d3840ee201f088f0ac3bb80374ab32e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const EnvironmentsComponent = require('./components/environment');
require('../vue_shared/vue_resource_interceptor');

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

  if (gl.EnvironmentsListApp) {
    gl.EnvironmentsListApp.$destroy(true);
  }

  gl.EnvironmentsListApp = new EnvironmentsComponent({
    el: document.querySelector('#environments-list-view'),
  });
});