debian-mirror-gitlab/app/assets/javascripts/self_monitor/index.js
2020-03-13 15:44:24 +05:30

20 lines
442 B
JavaScript

import Vue from 'vue';
import store from './store';
import SelfMonitorForm from './components/self_monitor_form.vue';
export default () => {
const el = document.querySelector('.js-self-monitoring-settings');
if (el) {
// eslint-disable-next-line no-new
new Vue({
el,
store: store({
...el.dataset,
}),
render(createElement) {
return createElement(SelfMonitorForm);
},
});
}
};