Commit 2d45b4e3 authored by Mike Greiling's avatar Mike Greiling

migrate projects:issues:index to static bundle

parent 33993385
...@@ -55,12 +55,7 @@ import SearchAutocomplete from './search_autocomplete'; ...@@ -55,12 +55,7 @@ import SearchAutocomplete from './search_autocomplete';
.catch(fail); .catch(fail);
break; break;
case 'projects:merge_requests:index': case 'projects:merge_requests:index':
shortcut_handler = true;
break;
case 'projects:issues:index': case 'projects:issues:index':
import('./pages/projects/issues/index')
.then(callDefault)
.catch(fail);
shortcut_handler = true; shortcut_handler = true;
break; break;
case 'projects:issues:show': case 'projects:issues:show':
......
...@@ -7,10 +7,10 @@ import initFilteredSearch from '~/pages/search/init_filtered_search'; ...@@ -7,10 +7,10 @@ import initFilteredSearch from '~/pages/search/init_filtered_search';
import { FILTERED_SEARCH } from '~/pages/constants'; import { FILTERED_SEARCH } from '~/pages/constants';
import { ISSUABLE_INDEX } from '~/pages/projects/constants'; import { ISSUABLE_INDEX } from '~/pages/projects/constants';
export default () => { document.addEventListener('DOMContentLoaded', () => {
initFilteredSearch(FILTERED_SEARCH.ISSUES); initFilteredSearch(FILTERED_SEARCH.ISSUES);
new IssuableIndex(ISSUABLE_INDEX.ISSUE); new IssuableIndex(ISSUABLE_INDEX.ISSUE);
new ShortcutsNavigation(); new ShortcutsNavigation();
new UsersSelect(); new UsersSelect();
}; });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment