debian-mirror-gitlab/app/assets/javascripts/issue_show/index.js
2019-12-04 20:38:33 +05:30

22 lines
602 B
JavaScript

import Vue from 'vue';
import { initSidebarTracking } from 'ee_else_ce/event_tracking/issue_sidebar';
import issuableApp from './components/app.vue';
import { parseIssuableData } from './utils/parse_data';
import '../vue_shared/vue_resource_interceptor';
export default function initIssueableApp() {
return new Vue({
el: document.getElementById('js-issuable-app'),
components: {
issuableApp,
},
mounted() {
initSidebarTracking();
},
render(createElement) {
return createElement('issuable-app', {
props: parseIssuableData(),
});
},
});
}