7650677d3d
This MR rewrites existing Related Merge Requests widget with Vue with reusing shared Related Issues components
18 lines
471 B
JavaScript
18 lines
471 B
JavaScript
import Vue from 'vue';
|
|
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,
|
|
},
|
|
render(createElement) {
|
|
return createElement('issuable-app', {
|
|
props: parseIssuableData(),
|
|
});
|
|
},
|
|
});
|
|
}
|