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