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