summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-02-02 16:11:14 -0600
committerMike Greiling <mike@pixelcog.com>2018-02-16 12:44:47 -0600
commitfeb86d49b016d2bd422f28b89284bebbe4bedf19 (patch)
tree50e1161331ed45bb332df4ad8ca4457edf1a7cec /app
parent5fa3bd178793d8084e495807b8b6cfa20974992b (diff)
downloadgitlab-ce-feb86d49b016d2bd422f28b89284bebbe4bedf19.tar.gz
migrate dashboard:milestones:show to static bundle
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/dispatcher.js5
-rw-r--r--app/assets/javascripts/pages/dashboard/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 216caceb9d5..5297104e9a1 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 'dashboard:milestones:show':
- import('./pages/dashboard/milestones/show')
- .then(callDefault)
- .catch(fail);
- break;
case 'dashboard:issues':
import('./pages/dashboard/issues')
.then(callDefault)
diff --git a/app/assets/javascripts/pages/dashboard/milestones/show/index.js b/app/assets/javascripts/pages/dashboard/milestones/show/index.js
index 2e7a08a369c..06195d73c0a 100644
--- a/app/assets/javascripts/pages/dashboard/milestones/show/index.js
+++ b/app/assets/javascripts/pages/dashboard/milestones/show/index.js
@@ -1,7 +1,7 @@
import Milestone from '~/milestone';
import Sidebar from '~/right_sidebar';
-export default () => {
+document.addEventListener('DOMContentLoaded', () => {
new Milestone(); // eslint-disable-line no-new
new Sidebar(); // eslint-disable-line no-new
-};
+});