2020-01-01 13:55:28 +05:30
|
|
|
import IssuableFilteredSearchTokenKeys from 'ee_else_ce/filtered_search/issuable_filtered_search_token_keys';
|
2018-12-05 23:21:45 +05:30
|
|
|
import ShortcutsNavigation from '~/behaviors/shortcuts/shortcuts_navigation';
|
2022-01-26 12:08:38 +05:30
|
|
|
import { initCsvImportExportButtons, initIssuableByEmail } from '~/issuable';
|
2022-03-02 08:16:31 +05:30
|
|
|
import { initBulkUpdateSidebar, initIssueStatusSelect } from '~/issuable/bulk_update_sidebar';
|
|
|
|
import { mountIssuesListApp, mountJiraIssuesListApp } from '~/issues/list';
|
2022-01-26 12:08:38 +05:30
|
|
|
import initManualOrdering from '~/issues/manual_ordering';
|
|
|
|
import { FILTERED_SEARCH } from '~/filtered_search/constants';
|
|
|
|
import { ISSUABLE_INDEX } from '~/issuable/constants';
|
2021-03-11 19:13:27 +05:30
|
|
|
import initFilteredSearch from '~/pages/search/init_filtered_search';
|
|
|
|
import UsersSelect from '~/users_select';
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
if (gon.features?.vueIssuesList) {
|
2021-06-08 01:23:25 +05:30
|
|
|
mountIssuesListApp();
|
2021-04-29 21:17:54 +05:30
|
|
|
} else {
|
2021-06-08 01:23:25 +05:30
|
|
|
IssuableFilteredSearchTokenKeys.addExtraTokensForIssues();
|
|
|
|
|
|
|
|
initFilteredSearch({
|
|
|
|
page: FILTERED_SEARCH.ISSUES,
|
|
|
|
filteredSearchTokenKeys: IssuableFilteredSearchTokenKeys,
|
|
|
|
useDefaultState: true,
|
|
|
|
});
|
|
|
|
|
2022-03-02 08:16:31 +05:30
|
|
|
initBulkUpdateSidebar(ISSUABLE_INDEX.ISSUE);
|
|
|
|
initIssueStatusSelect();
|
2021-06-08 01:23:25 +05:30
|
|
|
new UsersSelect(); // eslint-disable-line no-new
|
|
|
|
|
|
|
|
initCsvImportExportButtons();
|
|
|
|
initIssuableByEmail();
|
|
|
|
initManualOrdering();
|
2021-04-29 21:17:54 +05:30
|
|
|
}
|
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
new ShortcutsNavigation(); // eslint-disable-line no-new
|
2020-05-24 23:13:21 +05:30
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
mountJiraIssuesListApp();
|