diff options
author | Phil Hughes <me@iamphill.com> | 2018-01-10 13:19:24 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-01-10 13:19:24 +0300 |
commit | be623ef3c1a867d23e9625fe372c17fcad3c47ce (patch) | |
tree | 51c512a129ccf9a6a23a1e9d3833db17d7addbb5 /app | |
parent | 830e9bf700d8d4bb889190d3325f3336c08d815b (diff) | |
parent | d2b88e9bd7900079ee2cf5052ecfb99d52a1e1c2 (diff) |
Merge branch 'dispatcher-dashboard-projects' into 'master'
Refactor dispatcher dashboard projects route
See merge request gitlab-org/gitlab-ce!16321
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 4 | ||||
-rw-r--r-- | app/assets/javascripts/pages/dashboard/projects/index.js | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index ccd32ef2965..81d16cdbbe7 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -226,6 +226,10 @@ import Activities from './activities'; break; case 'dashboard:projects:index': case 'dashboard:projects:starred': + import('./pages/dashboard/projects') + .then(callDefault) + .catch(fail); + break; case 'explore:projects:index': case 'explore:projects:trending': case 'explore:projects:starred': diff --git a/app/assets/javascripts/pages/dashboard/projects/index.js b/app/assets/javascripts/pages/dashboard/projects/index.js new file mode 100644 index 00000000000..c88cbf1a6ba --- /dev/null +++ b/app/assets/javascripts/pages/dashboard/projects/index.js @@ -0,0 +1,3 @@ +import ProjectsList from '~/projects_list'; + +export default () => new ProjectsList(); |