2017-04-05 21:13:06 -04:00
|
|
|
import Vue from 'vue';
|
2017-04-21 16:34:11 -04:00
|
|
|
import IssueTitle from './issue_title_description.vue';
|
2017-04-05 21:13:06 -04:00
|
|
|
import '../vue_shared/vue_resource_interceptor';
|
|
|
|
|
2017-04-15 11:11:04 -04:00
|
|
|
(() => {
|
|
|
|
const issueTitleData = document.querySelector('.issue-title-data').dataset;
|
2017-05-05 11:33:39 -04:00
|
|
|
const { canUpdateTasksClass, endpoint } = issueTitleData;
|
2017-04-05 21:13:06 -04:00
|
|
|
|
2017-04-15 11:11:04 -04:00
|
|
|
const vm = new Vue({
|
|
|
|
el: '.issue-title-entrypoint',
|
|
|
|
render: createElement => createElement(IssueTitle, {
|
|
|
|
props: {
|
2017-05-05 11:33:39 -04:00
|
|
|
canUpdateTasksClass,
|
2017-04-15 11:11:04 -04:00
|
|
|
endpoint,
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
});
|
2017-04-05 21:13:06 -04:00
|
|
|
|
2017-04-15 11:11:04 -04:00
|
|
|
return vm;
|
|
|
|
})();
|