Commit 3ead412a authored by Clement Ho's avatar Clement Ho Committed by Phil Hughes

Refactor dashboard milestone show inside dispatcher

parent b1d013bd
...@@ -196,10 +196,14 @@ import Activities from './activities'; ...@@ -196,10 +196,14 @@ import Activities from './activities';
break; break;
case 'projects:milestones:show': case 'projects:milestones:show':
case 'groups:milestones:show': case 'groups:milestones:show':
case 'dashboard:milestones:show':
new Milestone(); new Milestone();
new Sidebar(); new Sidebar();
break; break;
case 'dashboard:milestones:show':
import('./pages/dashboard/milestones/show')
.then(callDefault)
.catch(fail);
break;
case 'dashboard:issues': case 'dashboard:issues':
case 'dashboard:merge_requests': case 'dashboard:merge_requests':
projectSelect(); projectSelect();
......
import Milestone from '~/milestone';
import Sidebar from '~/right_sidebar';
export default () => {
new Milestone(); // eslint-disable-line no-new
new Sidebar(); // eslint-disable-line no-new
};
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