debian-mirror-gitlab/app/assets/javascripts/pages/projects/branches/index/index.js

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

20 lines
730 B
JavaScript
Raw Normal View History

2021-04-29 21:17:54 +05:30
import initDeprecatedRemoveRowBehavior from '~/behaviors/deprecated_remove_row_behavior';
import BranchSortDropdown from '~/branches/branch_sort_dropdown';
2019-09-30 21:07:59 +05:30
import initDiverganceGraph from '~/branches/divergence_graph';
2021-09-04 01:27:46 +05:30
import initDeleteBranchButton from '~/branches/init_delete_branch_button';
import initDeleteBranchModal from '~/branches/init_delete_branch_modal';
2018-03-17 18:26:18 +05:30
2021-04-29 21:17:54 +05:30
const { divergingCountsEndpoint, defaultBranch } = document.querySelector(
'.js-branch-list',
).dataset;
initDiverganceGraph(divergingCountsEndpoint, defaultBranch);
BranchSortDropdown();
initDeprecatedRemoveRowBehavior();
2021-09-04 01:27:46 +05:30
document
.querySelectorAll('.js-delete-branch-button')
.forEach((elem) => initDeleteBranchButton(elem));
initDeleteBranchModal();