debian-mirror-gitlab/app/assets/javascripts/pages/dashboard/merge_requests/index.js

18 lines
692 B
JavaScript
Raw Normal View History

2020-01-01 13:55:28 +05:30
import addExtraTokensForMergeRequests from 'ee_else_ce/filtered_search/add_extra_tokens_for_merge_requests';
2019-02-15 15:39:39 +05:30
import IssuableFilteredSearchTokenKeys from '~/filtered_search/issuable_filtered_search_token_keys';
import { FILTERED_SEARCH } from '~/pages/constants';
2021-03-11 19:13:27 +05:30
import initFilteredSearch from '~/pages/search/init_filtered_search';
import projectSelect from '~/project_select';
2018-03-17 18:26:18 +05:30
2018-03-27 19:54:05 +05:30
document.addEventListener('DOMContentLoaded', () => {
2021-01-03 14:25:43 +05:30
addExtraTokensForMergeRequests(IssuableFilteredSearchTokenKeys, true);
2019-02-15 15:39:39 +05:30
initFilteredSearch({
page: FILTERED_SEARCH.MERGE_REQUESTS,
filteredSearchTokenKeys: IssuableFilteredSearchTokenKeys,
2020-10-24 23:57:45 +05:30
useDefaultState: true,
2019-02-15 15:39:39 +05:30
});
2018-03-17 18:26:18 +05:30
projectSelect();
2018-03-27 19:54:05 +05:30
});