Merge branch 'dispatcher-search' into 'master'
Refactor dispatcher search path See merge request gitlab-org/gitlab-ce!16366
This commit is contained in:
commit
bf3c54bfd5
3 changed files with 8 additions and 4 deletions
|
@ -13,7 +13,6 @@ import groupAvatar from './group_avatar';
|
|||
import GroupLabelSubscription from './group_label_subscription';
|
||||
import LineHighlighter from './line_highlighter';
|
||||
import groupsSelect from './groups_select';
|
||||
import Search from './search';
|
||||
import initAdmin from './admin';
|
||||
import NamespaceSelect from './namespace_select';
|
||||
import NewCommitForm from './new_commit_form';
|
||||
|
@ -529,7 +528,9 @@ import Activities from './activities';
|
|||
VersionCheckImage.bindErrorEvent($('img.js-version-status-badge'));
|
||||
break;
|
||||
case 'search:show':
|
||||
new Search();
|
||||
import('./pages/search/show')
|
||||
.then(callDefault)
|
||||
.catch(fail);
|
||||
break;
|
||||
case 'projects:settings:repository:show':
|
||||
// Initialize expandable settings panels
|
||||
|
|
3
app/assets/javascripts/pages/search/show/index.js
Normal file
3
app/assets/javascripts/pages/search/show/index.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
import Search from './search';
|
||||
|
||||
export default () => new Search();
|
|
@ -1,5 +1,5 @@
|
|||
import Flash from './flash';
|
||||
import Api from './api';
|
||||
import Flash from '~/flash';
|
||||
import Api from '~/api';
|
||||
|
||||
export default class Search {
|
||||
constructor() {
|
Loading…
Reference in a new issue