debian-mirror-gitlab/app/assets/javascripts/deploy_freeze/index.js
2020-10-24 23:57:45 +05:30

22 lines
502 B
JavaScript

import Vue from 'vue';
import DeployFreezeSettings from './components/deploy_freeze_settings.vue';
import createStore from './store';
export default () => {
const el = document.getElementById('js-deploy-freeze-table');
const { projectId, timezoneData } = el.dataset;
const store = createStore({
projectId,
timezoneData: JSON.parse(timezoneData),
});
return new Vue({
el,
store,
render(createElement) {
return createElement(DeployFreezeSettings);
},
});
};