gitlab-org--gitlab-foss/app/assets/javascripts/environments/environments_bundle.js.es6

14 lines
314 B
JavaScript
Raw Normal View History

2017-02-09 06:52:22 -05:00
const EnvironmentsComponent = require('./components/environment');
2016-10-14 08:14:18 -04:00
$(() => {
2016-10-14 08:14:18 -04:00
window.gl = window.gl || {};
2016-10-26 11:00:16 -04:00
2017-01-05 05:07:34 -05:00
if (gl.EnvironmentsListApp) {
gl.EnvironmentsListApp.$destroy(true);
2016-10-14 08:14:18 -04:00
}
2016-10-26 11:00:16 -04:00
2017-02-09 06:52:22 -05:00
gl.EnvironmentsListApp = new EnvironmentsComponent({
el: document.querySelector('#environments-list-view'),
2016-10-14 08:14:18 -04:00
});
2016-10-20 07:09:35 -04:00
});