debian-mirror-gitlab/app/assets/javascripts/self_monitor/index.js
2021-03-11 19:13:27 +05:30

20 lines
442 B
JavaScript

import Vue from 'vue';
import SelfMonitorForm from './components/self_monitor_form.vue';
import store from './store';
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);
},
});
}
};