From ad1a9817dc7a94c0c5e1169eaf3da4b75d90326f Mon Sep 17 00:00:00 2001 From: Clement Ho Date: Mon, 8 Jan 2018 17:49:31 -0600 Subject: [PATCH] Refactor dashboard issues --- app/assets/javascripts/dispatcher.js | 2 ++ app/assets/javascripts/pages/dashboard/issues/index.js | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 app/assets/javascripts/pages/dashboard/issues/index.js 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(); +}