Finishes dispatcher projects:a* stuff.

This commit is contained in:
Jacob Schatz 2018-01-08 20:31:27 -05:00
parent a9a858e020
commit 3ef346bce9
3 changed files with 22 additions and 5 deletions

View file

@ -12,7 +12,6 @@ import notificationsDropdown from './notifications_dropdown';
import groupAvatar from './group_avatar'; import groupAvatar from './group_avatar';
import GroupLabelSubscription from './group_label_subscription'; import GroupLabelSubscription from './group_label_subscription';
import LineHighlighter from './line_highlighter'; import LineHighlighter from './line_highlighter';
import BuildArtifacts from './build_artifacts';
import CILintEditor from './ci_lint_editor'; import CILintEditor from './ci_lint_editor';
import groupsSelect from './groups_select'; import groupsSelect from './groups_select';
import Search from './search'; import Search from './search';
@ -506,12 +505,16 @@ import Activities from './activities';
.catch(() => {}); .catch(() => {});
break; break;
case 'projects:artifacts:browse': case 'projects:artifacts:browse':
new ShortcutsNavigation(); import('./pages/projects/artifacts/browse')
new BuildArtifacts(); .then(callDefault)
.catch(fail);
shortcut_handler = true;
break; break;
case 'projects:artifacts:file': case 'projects:artifacts:file':
new ShortcutsNavigation(); import('./pages/projects/artifacts/file')
new BlobViewer(); .then(callDefault)
.catch(fail);
shortcut_handler = true;
break; break;
case 'help:index': case 'help:index':
VersionCheckImage.bindErrorEvent($('img.js-version-status-badge')); VersionCheckImage.bindErrorEvent($('img.js-version-status-badge'));

View file

@ -0,0 +1,7 @@
import BuildArtifacts from '~/build_artifacts';
import ShortcutsNavigation from '~/shortcuts_navigation';
export default function () {
new ShortcutsNavigation(); // eslint-disable-line no-new
new BuildArtifacts(); // eslint-disable-line no-new
}

View file

@ -0,0 +1,7 @@
import BlobViewer from '~/blob/viewer/index';
import ShortcutsNavigation from '~/shortcuts_navigation';
export default function () {
new ShortcutsNavigation(); // eslint-disable-line no-new
new BlobViewer(); // eslint-disable-line no-new
}