2020-08-28 11:10:21 -04:00
|
|
|
import Vue from 'vue';
|
|
|
|
import NewCluster from './components/new_cluster.vue';
|
|
|
|
|
|
|
|
export default () => {
|
2022-05-05 08:08:03 -04:00
|
|
|
const el = document.querySelector('#js-cluster-new');
|
2020-08-28 11:10:21 -04:00
|
|
|
|
2022-05-05 08:08:03 -04:00
|
|
|
if (!el) {
|
2020-08-28 11:10:21 -04:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return new Vue({
|
2022-05-05 08:08:03 -04:00
|
|
|
el,
|
2020-08-28 11:10:21 -04:00
|
|
|
render(createElement) {
|
|
|
|
return createElement(NewCluster);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|