Commit bfdc81e9 authored by Mike Greiling's avatar Mike Greiling

migrate projects:show to static bundle

parent 7b5e0d52
...@@ -306,9 +306,6 @@ import SearchAutocomplete from './search_autocomplete'; ...@@ -306,9 +306,6 @@ import SearchAutocomplete from './search_autocomplete';
shortcut_handler = true; shortcut_handler = true;
break; break;
case 'projects:show': case 'projects:show':
import('./pages/projects/show')
.then(callDefault)
.catch(fail);
shortcut_handler = true; shortcut_handler = true;
break; break;
case 'projects:edit': case 'projects:edit':
......
...@@ -8,7 +8,7 @@ import { ajaxGet } from '~/lib/utils/common_utils'; ...@@ -8,7 +8,7 @@ import { ajaxGet } from '~/lib/utils/common_utils';
import Star from '../../../star'; import Star from '../../../star';
import notificationsDropdown from '../../../notifications_dropdown'; import notificationsDropdown from '../../../notifications_dropdown';
export default () => { document.addEventListener('DOMContentLoaded', () => {
new Star(); // eslint-disable-line no-new new Star(); // eslint-disable-line no-new
notificationsDropdown(); notificationsDropdown();
new ShortcutsNavigation(); // eslint-disable-line no-new new ShortcutsNavigation(); // eslint-disable-line no-new
...@@ -24,4 +24,4 @@ export default () => { ...@@ -24,4 +24,4 @@ export default () => {
$('#tree-slider').waitForImages(() => { $('#tree-slider').waitForImages(() => {
ajaxGet(document.querySelector('.js-tree-content').dataset.logsPath); ajaxGet(document.querySelector('.js-tree-content').dataset.logsPath);
}); });
}; });
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