diff options
Diffstat (limited to 'app/assets/javascripts/tags/init_delete_tag_modal.js')
-rw-r--r-- | app/assets/javascripts/tags/init_delete_tag_modal.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/assets/javascripts/tags/init_delete_tag_modal.js b/app/assets/javascripts/tags/init_delete_tag_modal.js new file mode 100644 index 00000000000..03e3d393c14 --- /dev/null +++ b/app/assets/javascripts/tags/init_delete_tag_modal.js @@ -0,0 +1,14 @@ +import Vue from 'vue'; +import DeleteTagModal from '~/tags/components/delete_tag_modal.vue'; + +export default function initDeleteTagModal() { + const el = document.querySelector('.js-delete-tag-modal'); + if (!el) return false; + + return new Vue({ + el, + render(createComponent) { + return createComponent(DeleteTagModal); + }, + }); +} |