Commit a9a858e0 authored by Jacob Schatz's avatar Jacob Schatz

Fix `projects:a*` refactor for dispatcher

parent cd16600e
...@@ -357,8 +357,10 @@ import Activities from './activities'; ...@@ -357,8 +357,10 @@ import Activities from './activities';
$('.commit-info.branches').load(document.querySelector('.js-commit-box').dataset.commitPath); $('.commit-info.branches').load(document.querySelector('.js-commit-box').dataset.commitPath);
break; break;
case 'projects:activity': case 'projects:activity':
new Activities(); import('./pages/projects/activity')
shortcut_handler = new ShortcutsNavigation(); .then(callDefault)
.catch(fail);
shortcut_handler = true;
break; break;
case 'projects:commits:show': case 'projects:commits:show':
CommitsList.init(document.querySelector('.js-project-commits-show').dataset.commitsLimit); CommitsList.init(document.querySelector('.js-project-commits-show').dataset.commitsLimit);
......
import Activities from '~/activities';
import ShortcutsNavigation from '~/shortcuts_navigation';
export default function () {
new Activities(); // eslint-disable-line no-new
new ShortcutsNavigation(); // eslint-disable-line no-new
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment