2017-04-05 21:13:06 -04:00
|
|
|
import Vue from 'vue';
|
2017-05-10 07:29:33 -04:00
|
|
|
import issuableApp from './components/app.vue';
|
2017-04-05 21:13:06 -04:00
|
|
|
|
2020-09-02 05:10:23 -04:00
|
|
|
export default function initIssuableApp(issuableData) {
|
2017-05-12 05:11:15 -04:00
|
|
|
return new Vue({
|
|
|
|
el: document.getElementById('js-issuable-app'),
|
|
|
|
components: {
|
|
|
|
issuableApp,
|
|
|
|
},
|
|
|
|
render(createElement) {
|
|
|
|
return createElement('issuable-app', {
|
2020-09-02 05:10:23 -04:00
|
|
|
props: issuableData,
|
2017-05-12 05:11:15 -04:00
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
2018-08-23 16:53:35 -04:00
|
|
|
}
|