diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-01-10 11:34:25 -0600 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-01-10 11:34:25 -0600 |
commit | 4905360c3fb90e737e454a16855423389368ae7a (patch) | |
tree | 106de8361017dc131ce74b42c0c8f55da2fa3f6d /app | |
parent | 82007530cb08ccd8aff68aafdc506595f62a40a6 (diff) | |
download | gitlab-ce-4905360c3fb90e737e454a16855423389368ae7a.tar.gz |
Refactor dashboard activities pathdispatcher-dashboard-activities
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 4 | ||||
-rw-r--r-- | app/assets/javascripts/pages/dashboard/activity/index.js | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index a282b67b0fc..efec4d56532 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -349,7 +349,9 @@ import Activities from './activities'; shortcut_handler = new ShortcutsIssuable(true); break; case 'dashboard:activity': - new Activities(); + import('./pages/dashboard/activity') + .then(callDefault) + .catch(fail); break; case 'projects:commit:show': new Diff(); diff --git a/app/assets/javascripts/pages/dashboard/activity/index.js b/app/assets/javascripts/pages/dashboard/activity/index.js new file mode 100644 index 00000000000..95faf1f1e98 --- /dev/null +++ b/app/assets/javascripts/pages/dashboard/activity/index.js @@ -0,0 +1,3 @@ +import Activities from '~/activities'; + +export default () => new Activities(); |