debian-mirror-gitlab/app/assets/javascripts/notes/timeline.js

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

17 lines
360 B
JavaScript
Raw Normal View History

2021-01-03 14:25:43 +05:30
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);
},
});
}