diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-01-09 08:37:36 -0600 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-01-09 08:37:36 -0600 |
commit | 67b575d0532d3569c064fcaf5c97f4df4026169b (patch) | |
tree | e23390982d07d7e4c770ff8096ba527f77c759c9 | |
parent | bd50ecbad8c00e7c9ab5c60fa8bc839a8905b4ab (diff) | |
download | gitlab-ce-67b575d0532d3569c064fcaf5c97f4df4026169b.tar.gz |
Refactor dispatcher dashboard projects route
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 2 | ||||
-rw-r--r-- | app/assets/javascripts/pages/dashboard/projects/index.js | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index 9e8b2acfe1b..73eea4877ec 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -216,6 +216,8 @@ 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(); |