summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-01-10 09:22:43 +0000
committerPhil Hughes <me@iamphill.com>2018-01-10 09:22:43 +0000
commitb1d013bd9c06f651d1ee2c7458fa389200787fbb (patch)
tree97a2724e8bdde0de49a83812a9abfa4ca7b1e1ac
parent35dcf8513bb8b04229e739b897bcf3907450b483 (diff)
parenta7c038704728fdd3c90852fbf503ee740912411b (diff)
downloadgitlab-ce-b1d013bd9c06f651d1ee2c7458fa389200787fbb.tar.gz
Merge branch 'dispatcher-dashboard-milestone-index' into 'master'
Refactor dashboard milestone index inside dispatcher See merge request gitlab-org/gitlab-ce!16303
-rw-r--r--app/assets/javascripts/dispatcher.js4
-rw-r--r--app/assets/javascripts/pages/dashboard/milestones/index/index.js3
2 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js
index 9e8b2acfe1b..f2b1f7c423c 100644
--- a/app/assets/javascripts/dispatcher.js
+++ b/app/assets/javascripts/dispatcher.js
@@ -190,7 +190,9 @@ import Activities from './activities';
initIssuableSidebar();
break;
case 'dashboard:milestones:index':
- projectSelect();
+ import('./pages/dashboard/milestones/index')
+ .then(callDefault)
+ .catch(fail);
break;
case 'projects:milestones:show':
case 'groups:milestones:show':
diff --git a/app/assets/javascripts/pages/dashboard/milestones/index/index.js b/app/assets/javascripts/pages/dashboard/milestones/index/index.js
new file mode 100644
index 00000000000..0f2f1bd4a25
--- /dev/null
+++ b/app/assets/javascripts/pages/dashboard/milestones/index/index.js
@@ -0,0 +1,3 @@
+import projectSelect from '~/project_select';
+
+export default projectSelect;