Commit 6e0f420c authored by Mike Greiling's avatar Mike Greiling

migrate explore:groups:index to static bundle

parent 754dc137
...@@ -53,11 +53,6 @@ var Dispatcher; ...@@ -53,11 +53,6 @@ var Dispatcher;
case 'projects:issues:show': case 'projects:issues:show':
shortcut_handler = true; shortcut_handler = true;
break; break;
case 'explore:groups:index':
import('./pages/explore/groups')
.then(callDefault)
.catch(fail);
break;
case 'projects:milestones:new': case 'projects:milestones:new':
case 'projects:milestones:create': case 'projects:milestones:create':
import('./pages/projects/milestones/new') import('./pages/projects/milestones/new')
......
...@@ -2,7 +2,7 @@ import GroupsList from '~/groups_list'; ...@@ -2,7 +2,7 @@ import GroupsList from '~/groups_list';
import Landing from '~/landing'; import Landing from '~/landing';
import initGroupsList from '../../../groups'; import initGroupsList from '../../../groups';
export default function () { document.addEventListener('DOMContentLoaded', () => {
new GroupsList(); // eslint-disable-line no-new new GroupsList(); // eslint-disable-line no-new
initGroupsList(); initGroupsList();
const landingElement = document.querySelector('.js-explore-groups-landing'); const landingElement = document.querySelector('.js-explore-groups-landing');
...@@ -13,4 +13,4 @@ export default function () { ...@@ -13,4 +13,4 @@ export default function () {
'explore_groups_landing_dismissed', 'explore_groups_landing_dismissed',
); );
exploreGroupsLanding.toggle(); exploreGroupsLanding.toggle();
} });
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