diff options
Diffstat (limited to 'app/assets/javascripts/issue_show/index.js')
-rw-r--r-- | app/assets/javascripts/issue_show/index.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/assets/javascripts/issue_show/index.js b/app/assets/javascripts/issue_show/index.js new file mode 100644 index 00000000000..4d491e70d83 --- /dev/null +++ b/app/assets/javascripts/issue_show/index.js @@ -0,0 +1,20 @@ +import Vue from 'vue'; +import IssueTitle from './issue_title.vue'; +import '../vue_shared/vue_resource_interceptor'; + +(() => { + const issueTitleData = document.querySelector('.issue-title-data').dataset; + const { initialTitle, endpoint } = issueTitleData; + + const vm = new Vue({ + el: '.issue-title-entrypoint', + render: createElement => createElement(IssueTitle, { + props: { + initialTitle, + endpoint, + }, + }), + }); + + return vm; +})(); |