Merge branch 'dispatcher-dashboard-mr' into 'master'

Refactor dispatcher dashboard mr path

See merge request gitlab-org/gitlab-ce!16360
This commit is contained in:
Fatih Acet 2018-01-11 21:14:53 +00:00
commit b5cde6b62e
2 changed files with 10 additions and 3 deletions

View file

@ -52,7 +52,6 @@ import ZenMode from './zen_mode';
import initSettingsPanels from './settings_panels';
import PerformanceBar from './performance_bar';
import initNotes from './init_notes';
import initLegacyFilters from './init_legacy_filters';
import initIssuableSidebar from './init_issuable_sidebar';
import initProjectVisibilitySelector from './project_visibility';
import GpgBadges from './gpg_badges';
@ -192,8 +191,9 @@ import Activities from './activities';
.catch(fail);
break;
case 'dashboard:merge_requests':
projectSelect();
initLegacyFilters();
import('./pages/dashboard/merge_requests')
.then(callDefault)
.catch(fail);
break;
case 'groups:issues':
case 'groups:merge_requests':

View file

@ -0,0 +1,7 @@
import projectSelect from '~/project_select';
import initLegacyFilters from '~/init_legacy_filters';
export default () => {
projectSelect();
initLegacyFilters();
};