debian-mirror-gitlab/app/assets/javascripts/notes/timeline.js
2021-01-03 14:25:43 +05:30

16 lines
360 B
JavaScript

import Vue from 'vue';
import TimelineToggle from './components/timeline_toggle.vue';
export default function initTimelineToggle(store) {
const el = document.getElementById('js-incidents-timeline-toggle');
if (!el) return null;
return new Vue({
el,
store,
render(createElement) {
return createElement(TimelineToggle);
},
});
}