Commit 1fd25fcc authored by Luke Bennett's avatar Luke Bennett

Resolve dispatcher.js

parent a42bb293
...@@ -4,11 +4,8 @@ import NotificationsForm from './notifications_form'; ...@@ -4,11 +4,8 @@ import NotificationsForm from './notifications_form';
import notificationsDropdown from './notifications_dropdown'; import notificationsDropdown from './notifications_dropdown';
import LineHighlighter from './line_highlighter'; import LineHighlighter from './line_highlighter';
import MergeRequest from './merge_request'; import MergeRequest from './merge_request';
<<<<<<< HEAD
import Compare from './compare'; import Compare from './compare';
import initCompareAutocomplete from './compare_autocomplete'; import initCompareAutocomplete from './compare_autocomplete';
=======
>>>>>>> upstream/master
import Sidebar from './right_sidebar'; import Sidebar from './right_sidebar';
import Flash from './flash'; import Flash from './flash';
import SecretValues from './behaviors/secret_values'; import SecretValues from './behaviors/secret_values';
...@@ -77,7 +74,6 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line ...@@ -77,7 +74,6 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
}); });
}); });
<<<<<<< HEAD
function initBlobEE() { function initBlobEE() {
const dataEl = document.getElementById('js-file-lock'); const dataEl = document.getElementById('js-file-lock');
...@@ -91,8 +87,6 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line ...@@ -91,8 +87,6 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
} }
} }
=======
>>>>>>> upstream/master
switch (page) { switch (page) {
case 'sessions:new': case 'sessions:new':
import('./pages/sessions/new') import('./pages/sessions/new')
...@@ -246,7 +240,6 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line ...@@ -246,7 +240,6 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
shortcut_handler = true; shortcut_handler = true;
break; break;
case 'projects:merge_requests:creations:new': case 'projects:merge_requests:creations:new':
<<<<<<< HEAD
const mrNewCompareNode = document.querySelector('.js-merge-request-new-compare'); const mrNewCompareNode = document.querySelector('.js-merge-request-new-compare');
if (mrNewCompareNode) { if (mrNewCompareNode) {
new Compare({ new Compare({
...@@ -261,34 +254,23 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line ...@@ -261,34 +254,23 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
}); });
} }
new UserCallout(); new UserCallout();
=======
import('./pages/projects/merge_requests/creations/new')
.then(callDefault)
.catch(fail);
>>>>>>> upstream/master
case 'projects:merge_requests:creations:diffs': case 'projects:merge_requests:creations:diffs':
import('./pages/projects/merge_requests/creations/diffs') import('./pages/projects/merge_requests/creations/diffs')
.then(callDefault) .then(callDefault)
.catch(fail); .catch(fail);
shortcut_handler = true; shortcut_handler = true;
<<<<<<< HEAD
// ee-start // ee-start
initApprovals(); initApprovals();
// ee-end // ee-end
=======
>>>>>>> upstream/master
break; break;
case 'projects:merge_requests:edit': case 'projects:merge_requests:edit':
import('./pages/projects/merge_requests/edit') import('./pages/projects/merge_requests/edit')
.then(callDefault) .then(callDefault)
.catch(fail); .catch(fail);
shortcut_handler = true; shortcut_handler = true;
<<<<<<< HEAD
// ee-start // ee-start
initApprovals(); initApprovals();
// ee-end // ee-end
=======
>>>>>>> upstream/master
break; break;
case 'projects:tags:new': case 'projects:tags:new':
import('./pages/projects/tags/new') import('./pages/projects/tags/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