diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-02-02 12:09:10 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-02-02 12:09:10 -0600 |
commit | 65407c3878159add9113010046b55068261fec10 (patch) | |
tree | c8e7fb65a7f2a279cd7ef0efc2c80dc0ba9fad06 | |
parent | ed29be1b685d1fd0ace744ec5f2dd1f09b7eb0be (diff) | |
download | gitlab-ce-65407c3878159add9113010046b55068261fec10.tar.gz |
migrate groups:show to static bundle
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 3 | ||||
-rw-r--r-- | app/assets/javascripts/pages/groups/show/index.js | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index 242c1c06a33..ab28b7d8d44 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -319,9 +319,6 @@ var Dispatcher; .catch(fail); break; case 'groups:show': - import('./pages/groups/show') - .then(callDefault) - .catch(fail); shortcut_handler = true; break; case 'groups:group_members:index': diff --git a/app/assets/javascripts/pages/groups/show/index.js b/app/assets/javascripts/pages/groups/show/index.js index 6ed0f010f15..5c763986da3 100644 --- a/app/assets/javascripts/pages/groups/show/index.js +++ b/app/assets/javascripts/pages/groups/show/index.js @@ -7,7 +7,7 @@ import ProjectsList from '~/projects_list'; import ShortcutsNavigation from '~/shortcuts_navigation'; import initGroupsList from '../../../groups'; -export default () => { +document.addEventListener('DOMContentLoaded', () => { const newGroupChildWrapper = document.querySelector('.js-new-project-subgroup'); new ShortcutsNavigation(); new NotificationsForm(); @@ -19,4 +19,4 @@ export default () => { } initGroupsList(); -}; +}); |