2016-11-03 17:38:54 -04:00
|
|
|
window.Vue = require('vue');
|
|
|
|
require('./stores/environments_store');
|
|
|
|
require('./components/environment');
|
2017-02-04 09:58:16 -05:00
|
|
|
require('../vue_shared/vue_resource_interceptor');
|
2016-10-14 08:14:18 -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
|
|
|
|
2017-01-05 05:07:34 -05:00
|
|
|
if (gl.EnvironmentsListApp) {
|
|
|
|
gl.EnvironmentsListApp.$destroy(true);
|
2016-10-14 08:14:18 -04:00
|
|
|
}
|
2017-01-05 05:07:34 -05:00
|
|
|
const Store = gl.environmentsList.EnvironmentsStore;
|
2016-10-26 11:00:16 -04:00
|
|
|
|
2017-01-05 05:07:34 -05:00
|
|
|
gl.EnvironmentsListApp = new gl.environmentsList.EnvironmentsComponent({
|
2016-11-10 13:58:35 -05:00
|
|
|
el: document.querySelector('#environments-list-view'),
|
2017-01-05 05:07:34 -05:00
|
|
|
|
2016-11-10 13:58:35 -05:00
|
|
|
propsData: {
|
|
|
|
store: Store.create(),
|
2016-10-14 08:14:18 -04:00
|
|
|
},
|
2017-01-05 05:07:34 -05:00
|
|
|
|
2016-10-14 08:14:18 -04:00
|
|
|
});
|
2016-10-20 07:09:35 -04:00
|
|
|
});
|