diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-02-02 02:55:18 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-02-02 05:50:19 +0300 |
commit | cd4a87ee5549ee1ed4878c25d216daaf202240ac (patch) | |
tree | 88d099153d5e5011a3a326bf6d0726274612b2d8 /app/assets | |
parent | 2d45b4e37df07daf9411891777a08286d7c4413e (diff) |
migrate projects:issues:show to static bundle
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 5 | ||||
-rw-r--r-- | app/assets/javascripts/pages/projects/issues/show/index.js | 6 |
2 files changed, 3 insertions, 8 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index aaf41222306..cbe32fb81de 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -56,12 +56,7 @@ import SearchAutocomplete from './search_autocomplete'; break; case 'projects:merge_requests:index': case 'projects:issues:index': - shortcut_handler = true; - break; case 'projects:issues:show': - import('./pages/projects/issues/show') - .then(callDefault) - .catch(fail); shortcut_handler = true; break; case 'dashboard:milestones:index': diff --git a/app/assets/javascripts/pages/projects/issues/show/index.js b/app/assets/javascripts/pages/projects/issues/show/index.js index 48ed8fb2243..da312c1f1b7 100644 --- a/app/assets/javascripts/pages/projects/issues/show/index.js +++ b/app/assets/javascripts/pages/projects/issues/show/index.js @@ -1,13 +1,13 @@ - /* eslint-disable no-new */ + import initIssuableSidebar from '~/init_issuable_sidebar'; import Issue from '~/issue'; import ShortcutsIssuable from '~/shortcuts_issuable'; import ZenMode from '~/zen_mode'; -export default () => { +document.addEventListener('DOMContentLoaded', () => { new Issue(); new ShortcutsIssuable(); new ZenMode(); initIssuableSidebar(); -}; +}); |