gitlab-org--gitlab-foss/app/assets/javascripts/branches/init_delete_branch_modal.js

17 lines
374 B
JavaScript
Raw Normal View History

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);
},
});
}