summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2018-01-08 17:49:31 -0600
committerClement Ho <ClemMakesApps@gmail.com>2018-01-08 17:49:31 -0600
commitad1a9817dc7a94c0c5e1169eaf3da4b75d90326f (patch)
treee2e2fbcf62a1ee0fb329bd051f307bf7a9cb394a
parentbd50ecbad8c00e7c9ab5c60fa8bc839a8905b4ab (diff)
downloadgitlab-ce-ad1a9817dc7a94c0c5e1169eaf3da4b75d90326f.tar.gz
Refactor dashboard issues
-rw-r--r--app/assets/javascripts/dispatcher.js2
-rw-r--r--app/assets/javascripts/pages/dashboard/issues/index.js7
2 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js
index 9e8b2acfe1b..a353910d7cb 100644
--- a/app/assets/javascripts/dispatcher.js
+++ b/app/assets/javascripts/dispatcher.js
@@ -199,6 +199,8 @@ import Activities from './activities';
new Sidebar();
break;
case 'dashboard:issues':
+ import('./pages/dashboard/issues').then(callDefault).catch(fail);
+ break;
case 'dashboard:merge_requests':
projectSelect();
initLegacyFilters();
diff --git a/app/assets/javascripts/pages/dashboard/issues/index.js b/app/assets/javascripts/pages/dashboard/issues/index.js
new file mode 100644
index 00000000000..06c304afb86
--- /dev/null
+++ b/app/assets/javascripts/pages/dashboard/issues/index.js
@@ -0,0 +1,7 @@
+import projectSelect from '~/project_select';
+import initLegacyFilters from '~/init_legacy_filters';
+
+export default () => {
+ projectSelect();
+ initLegacyFilters();
+}