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';
|
2023-01-13 00:05:48 +05:30
|
|
|
import initDeleteMergedBranches from '~/branches/init_delete_merged_branches';
|
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();
|
2023-01-13 00:05:48 +05:30
|
|
|
initDeleteMergedBranches();
|
2021-09-04 01:27:46 +05:30
|
|
|
|
|
|
|
document
|
|
|
|
.querySelectorAll('.js-delete-branch-button')
|
|
|
|
.forEach((elem) => initDeleteBranchButton(elem));
|
|
|
|
|
|
|
|
initDeleteBranchModal();
|