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

28 lines
979 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
/* eslint-disable no-new */
2020-01-01 13:55:28 +05:30
import IssuableFilteredSearchTokenKeys from 'ee_else_ce/filtered_search/issuable_filtered_search_token_keys';
2018-03-17 18:26:18 +05:30
import IssuableIndex from '~/issuable_index';
2018-12-05 23:21:45 +05:30
import ShortcutsNavigation from '~/behaviors/shortcuts/shortcuts_navigation';
2018-03-17 18:26:18 +05:30
import UsersSelect from '~/users_select';
import initFilteredSearch from '~/pages/search/init_filtered_search';
import { FILTERED_SEARCH } from '~/pages/constants';
import { ISSUABLE_INDEX } from '~/pages/projects/constants';
2020-05-24 23:13:21 +05:30
import initIssuablesList from '~/issuables_list';
2019-09-30 21:07:59 +05:30
import initManualOrdering from '~/manual_ordering';
2018-03-17 18:26:18 +05:30
document.addEventListener('DOMContentLoaded', () => {
2019-07-07 11:18:12 +05:30
IssuableFilteredSearchTokenKeys.addExtraTokensForIssues();
2018-03-17 18:26:18 +05:30
initFilteredSearch({
page: FILTERED_SEARCH.ISSUES,
2018-12-05 23:21:45 +05:30
filteredSearchTokenKeys: IssuableFilteredSearchTokenKeys,
2018-03-17 18:26:18 +05:30
});
2020-05-24 23:13:21 +05:30
new IssuableIndex(ISSUABLE_INDEX.ISSUE);
2018-03-17 18:26:18 +05:30
new ShortcutsNavigation();
new UsersSelect();
2020-05-24 23:13:21 +05:30
2019-09-30 21:07:59 +05:30
initManualOrdering();
2020-05-24 23:13:21 +05:30
initIssuablesList();
2018-03-17 18:26:18 +05:30
});