diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2018-02-21 22:17:36 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2018-02-21 22:17:36 +0300 |
commit | ace12dd1c718ef940611ea0b41e5ed5e6e6769fc (patch) | |
tree | 22dfc1667d8e1ad9b05187062df487ec87f09db0 /app/assets/javascripts/dispatcher.js | |
parent | 8579894f1b6e8bf9656e03fc415f60050b82e8a9 (diff) | |
parent | 601164ca732f2ae3ec97fed6079951ee4efa7457 (diff) |
Merge branch 'dispatcher-import-project' into 'master'
Use dynamic imports for project dispatcher paths
See merge request gitlab-org/gitlab-ce!17270
Diffstat (limited to 'app/assets/javascripts/dispatcher.js')
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index 2bb173dc0ef..a0a2a30d4ca 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -52,57 +52,12 @@ var Dispatcher; case 'projects:merge_requests:creations:diffs': case 'projects:merge_requests:edit': case 'projects:merge_requests:show': - shortcut_handler = true; - break; case 'projects:commit:show': - import('./pages/projects/commit/show') - .then(callDefault) - .catch(fail); - shortcut_handler = true; - break; - case 'projects:commit:pipelines': - import('./pages/projects/commit/pipelines') - .then(callDefault) - .catch(fail); - break; case 'projects:activity': - import('./pages/projects/activity') - .then(callDefault) - .catch(fail); - shortcut_handler = true; - break; case 'projects:commits:show': - import('./pages/projects/commits/show') - .then(callDefault) - .catch(fail); - shortcut_handler = true; - break; case 'projects:show': shortcut_handler = true; break; - case 'projects:edit': - import('./pages/projects/edit') - .then(callDefault) - .catch(fail); - break; - case 'projects:imports:show': - import('./pages/projects/imports/show') - .then(callDefault) - .catch(fail); - break; - case 'projects:pipelines:new': - case 'projects:pipelines:create': - import('./pages/projects/pipelines/new') - .then(callDefault) - .catch(fail); - break; - case 'projects:pipelines:builds': - case 'projects:pipelines:failures': - case 'projects:pipelines:show': - import('./pages/projects/pipelines/builds') - .then(callDefault) - .catch(fail); - break; case 'groups:activity': import('./pages/groups/activity') .then(callDefault) |