debian-mirror-gitlab/app/assets/javascripts/branches/init_delete_merged_branches.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
529 B
JavaScript
Raw Normal View History

2023-01-13 00:05:48 +05:30
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,
},
});
},
});
}