gitlab-org--gitlab-foss/app/assets/javascripts/issue_show/index.js
2017-05-05 09:33:39 -06:00

20 lines
497 B
JavaScript

import Vue from 'vue';
import IssueTitle from './issue_title_description.vue';
import '../vue_shared/vue_resource_interceptor';
(() => {
const issueTitleData = document.querySelector('.issue-title-data').dataset;
const { canUpdateTasksClass, endpoint } = issueTitleData;
const vm = new Vue({
el: '.issue-title-entrypoint',
render: createElement => createElement(IssueTitle, {
props: {
canUpdateTasksClass,
endpoint,
},
}),
});
return vm;
})();