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

39 lines
1.4 KiB
JavaScript
Raw Normal View History

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';
2021-04-17 20:07:23 +05:30
import initCsvImportExportButtons from '~/issuable/init_csv_import_export_buttons';
2021-03-11 19:13:27 +05:30
import initIssuableByEmail from '~/issuable/init_issuable_by_email';
import IssuableIndex from '~/issuable_index';
2021-06-08 01:23:25 +05:30
import { mountIssuablesListApp, mountIssuesListApp, mountJiraIssuesListApp } from '~/issues_list';
2019-09-30 21:07:59 +05:30
import initManualOrdering from '~/manual_ordering';
2021-03-11 19:13:27 +05:30
import { FILTERED_SEARCH } from '~/pages/constants';
import { ISSUABLE_INDEX } from '~/pages/projects/constants';
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,
});
new IssuableIndex(ISSUABLE_INDEX.ISSUE); // eslint-disable-line no-new
new UsersSelect(); // eslint-disable-line no-new
initCsvImportExportButtons();
initIssuableByEmail();
initManualOrdering();
if (gon.features?.vueIssuablesList) {
mountIssuablesListApp();
}
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();