debian-mirror-gitlab/app/assets/javascripts/branches/init_delete_merged_branches.js
2023-01-13 15:02:22 +05:30

23 lines
529 B
JavaScript

import Vue from 'vue';
import DeleteMergedBranches from '~/branches/components/delete_merged_branches.vue';
export default function initDeleteMergedBranchesModal() {
const el = document.querySelector('.js-delete-merged-branches');
if (!el) {
return false;
}
const { formPath, defaultBranch } = el.dataset;
return new Vue({
el,
render(createComponent) {
return createComponent(DeleteMergedBranches, {
props: {
formPath,
defaultBranch,
},
});
},
});
}