gitlab-org--gitlab-foss/app/assets/javascripts/issue_show/index.js

21 lines
497 B
JavaScript
Raw Normal View History

2017-04-05 21:13:06 -04:00
import Vue from 'vue';
import IssueTitle from './issue_title_description.vue';
2017-04-05 21:13:06 -04:00
import '../vue_shared/vue_resource_interceptor';
(() => {
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
const vm = new Vue({
el: '.issue-title-entrypoint',
render: createElement => createElement(IssueTitle, {
props: {
2017-05-05 11:33:39 -04:00
canUpdateTasksClass,
endpoint,
},
}),
});
2017-04-05 21:13:06 -04:00
return vm;
})();