Commit bf3c54bf authored by Phil Hughes's avatar Phil Hughes

Merge branch 'dispatcher-search' into 'master'

Refactor dispatcher search path

See merge request gitlab-org/gitlab-ce!16366
parents 3735375f 62928a3f
...@@ -13,7 +13,6 @@ import groupAvatar from './group_avatar'; ...@@ -13,7 +13,6 @@ import groupAvatar from './group_avatar';
import GroupLabelSubscription from './group_label_subscription'; import GroupLabelSubscription from './group_label_subscription';
import LineHighlighter from './line_highlighter'; import LineHighlighter from './line_highlighter';
import groupsSelect from './groups_select'; import groupsSelect from './groups_select';
import Search from './search';
import initAdmin from './admin'; import initAdmin from './admin';
import NamespaceSelect from './namespace_select'; import NamespaceSelect from './namespace_select';
import NewCommitForm from './new_commit_form'; import NewCommitForm from './new_commit_form';
...@@ -529,7 +528,9 @@ import Activities from './activities'; ...@@ -529,7 +528,9 @@ import Activities from './activities';
VersionCheckImage.bindErrorEvent($('img.js-version-status-badge')); VersionCheckImage.bindErrorEvent($('img.js-version-status-badge'));
break; break;
case 'search:show': case 'search:show':
new Search(); import('./pages/search/show')
.then(callDefault)
.catch(fail);
break; break;
case 'projects:settings:repository:show': case 'projects:settings:repository:show':
// Initialize expandable settings panels // Initialize expandable settings panels
......
import Search from './search';
export default () => new Search();
import Flash from './flash'; import Flash from '~/flash';
import Api from './api'; import Api from '~/api';
export default class Search { export default class Search {
constructor() { constructor() {
......
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