gitlab-org--gitlab-foss/app/assets/javascripts/deploy_freeze/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
502 B
JavaScript
Raw Normal View History

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);
},
});
};