diff options
author | Simon Knox <psimyn@gmail.com> | 2018-01-16 23:01:10 +1100 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2018-01-16 23:01:10 +1100 |
commit | a0ddcf3f8a383bfae78dd08b16cc353e5046f4bb (patch) | |
tree | 8fd3d68d22f5fab1527614f65b49cf178bfb4695 | |
parent | 1644c1ac69248c59c982325f1d31b32a2b45e72e (diff) | |
download | gitlab-ce-a0ddcf3f8a383bfae78dd08b16cc353e5046f4bb.tar.gz |
add missing pages import for projects:compare:*
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 5 | ||||
-rw-r--r-- | app/assets/javascripts/pages/projects/compare/index.js | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index 824f4184b43..30a9f22417a 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -13,7 +13,6 @@ import Project from './project'; import projectAvatar from './project_avatar'; import MergeRequest from './merge_request'; import Compare from './compare'; -import initCompareAutocomplete from './compare_autocomplete'; import ProjectNew from './project_new'; import Labels from './labels'; import LabelManager from './label_manager'; @@ -638,7 +637,9 @@ import Activities from './activities'; projectAvatar(); switch (path[1]) { case 'compare': - initCompareAutocomplete(); + import('./pages/projects/compare') + .then(callDefault) + .catch(fail); break; case 'edit': shortcut_handler = new ShortcutsNavigation(); diff --git a/app/assets/javascripts/pages/projects/compare/index.js b/app/assets/javascripts/pages/projects/compare/index.js new file mode 100644 index 00000000000..32cea2bbedb --- /dev/null +++ b/app/assets/javascripts/pages/projects/compare/index.js @@ -0,0 +1,5 @@ +import initCompareAutocomplete from './compare_autocomplete'; + +export default () => { + initCompareAutocomplete(); +}; |