gitlab-org--gitlab-foss/app/assets/javascripts/clusters/new_cluster.js

20 lines
436 B
JavaScript
Raw Normal View History

import Vue from 'vue';
import NewCluster from './components/new_cluster.vue';
import { createStore } from './stores/new_cluster';
export default () => {
const entryPoint = document.querySelector('#js-cluster-new');
if (!entryPoint) {
return null;
}
return new Vue({
el: '#js-cluster-new',
store: createStore(entryPoint.dataset),
render(createElement) {
return createElement(NewCluster);
},
});
};