20 lines
442 B
JavaScript
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);
|
|
},
|
|
});
|
|
}
|
|
};
|