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

22 lines
530 B
JavaScript
Raw Normal View History

2016-10-14 12:14:18 +00:00
//= require vue
//= require_tree ./stores/
//= require ./components/environment
//= require ./vue_resource_interceptor
2016-10-14 12:14:18 +00:00
2016-10-26 15:00:16 +00:00
$(() => {
2016-10-14 12:14:18 +00:00
window.gl = window.gl || {};
2016-10-26 15:00:16 +00:00
if (window.gl.EnvironmentsListApp) {
window.gl.EnvironmentsListApp.$destroy(true);
2016-10-14 12:14:18 +00:00
}
const Store = window.gl.environmentsList.EnvironmentsStore;
2016-10-26 15:00:16 +00:00
window.gl.EnvironmentsListApp = new window.gl.environmentsList.EnvironmentsComponent({
el: document.querySelector('#environments-list-view'),
propsData: {
store: Store.create(),
2016-10-14 12:14:18 +00:00
},
});
2016-10-20 11:09:35 +00:00
});