debian-mirror-gitlab/app/assets/javascripts/branches/init_delete_branch_modal.js
2021-09-04 01:27:46 +05:30

16 lines
374 B
JavaScript

import Vue from 'vue';
import DeleteBranchModal from '~/branches/components/delete_branch_modal.vue';
export default function initDeleteBranchModal() {
const el = document.querySelector('.js-delete-branch-modal');
if (!el) {
return false;
}
return new Vue({
el,
render(createComponent) {
return createComponent(DeleteBranchModal);
},
});
}