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

31 lines
1.1 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';
2022-01-26 12:08:38 +05:30
import issuableInitBulkUpdateSidebar from '~/issuable/bulk_update_sidebar/issuable_init_bulk_update_sidebar';
2021-11-11 11:23:49 +05:30
import { mountIssuablesListApp, mountIssuesListApp } from '~/issues_list';
2022-01-26 12:08:38 +05:30
import initManualOrdering from '~/issues/manual_ordering';
import { FILTERED_SEARCH } from '~/filtered_search/constants';
2021-03-11 19:13:27 +05:30
import initFilteredSearch from '~/pages/search/init_filtered_search';
import projectSelect from '~/project_select';
2019-09-30 21:07:59 +05:30
2021-11-11 11:23:49 +05:30
if (gon.features?.vueIssuesList) {
mountIssuesListApp();
} else {
const ISSUE_BULK_UPDATE_PREFIX = 'issue_';
2018-03-17 18:26:18 +05:30
2021-11-11 11:23:49 +05:30
IssuableFilteredSearchTokenKeys.addExtraTokensForIssues();
IssuableFilteredSearchTokenKeys.removeTokensForKeys('release');
issuableInitBulkUpdateSidebar.init(ISSUE_BULK_UPDATE_PREFIX);
2019-07-07 11:18:12 +05:30
2021-11-11 11:23:49 +05:30
initFilteredSearch({
page: FILTERED_SEARCH.ISSUES,
isGroupDecendent: true,
useDefaultState: true,
filteredSearchTokenKeys: IssuableFilteredSearchTokenKeys,
});
projectSelect();
initManualOrdering();
2021-06-08 01:23:25 +05:30
2021-11-11 11:23:49 +05:30
if (gon.features?.vueIssuablesList) {
mountIssuablesListApp();
}
2021-06-08 01:23:25 +05:30
}