summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-02-02 16:06:26 -0600
committerMike Greiling <mike@pixelcog.com>2018-02-16 12:44:47 -0600
commitd163f906122d71a62e5c6bd2429a101a180863f6 (patch)
tree4c1eef0a90d69be9cfa3fded4c7667bd0cc7abc5
parentd9b299aced0ec7ed983dd8e6ece86cef25d03e1a (diff)
downloadgitlab-ce-d163f906122d71a62e5c6bd2429a101a180863f6.tar.gz
migrate projects:milestones:show to static bundle
-rw-r--r--app/assets/javascripts/dispatcher.js5
-rw-r--r--app/assets/javascripts/pages/projects/milestones/show/index.js4
2 files changed, 2 insertions, 7 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js
index d7ab737246f..19a0a7ff1d5 100644
--- a/app/assets/javascripts/dispatcher.js
+++ b/app/assets/javascripts/dispatcher.js
@@ -53,11 +53,6 @@ var Dispatcher;
case 'projects:issues:show':
shortcut_handler = true;
break;
- case 'projects:milestones:show':
- import('./pages/projects/milestones/show')
- .then(callDefault)
- .catch(fail);
- break;
case 'groups:milestones:show':
import('./pages/groups/milestones/show')
.then(callDefault)
diff --git a/app/assets/javascripts/pages/projects/milestones/show/index.js b/app/assets/javascripts/pages/projects/milestones/show/index.js
index 35b5c9c2ced..84a52421598 100644
--- a/app/assets/javascripts/pages/projects/milestones/show/index.js
+++ b/app/assets/javascripts/pages/projects/milestones/show/index.js
@@ -1,7 +1,7 @@
import initMilestonesShow from '~/pages/milestones/shared/init_milestones_show';
import milestones from '~/pages/milestones/shared';
-export default () => {
+document.addEventListener('DOMContentLoaded', () => {
initMilestonesShow();
milestones();
-};
+});