Commit 5d9a6599 authored by Clement Ho's avatar Clement Ho

Refactor dispatcher search path

parent 394d5294
...@@ -14,7 +14,6 @@ import GroupLabelSubscription from './group_label_subscription'; ...@@ -14,7 +14,6 @@ import GroupLabelSubscription from './group_label_subscription';
import LineHighlighter from './line_highlighter'; import LineHighlighter from './line_highlighter';
import BuildArtifacts from './build_artifacts'; import BuildArtifacts from './build_artifacts';
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';
...@@ -580,7 +579,9 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line ...@@ -580,7 +579,9 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
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);
new UserCallout(); new UserCallout();
break; break;
case 'projects:mirrors:show': case 'projects:mirrors:show':
......
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