summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-02-02 16:30:28 -0600
committerMike Greiling <mike@pixelcog.com>2018-02-16 12:47:21 -0600
commit754dc137f70709eb3d7e6853ffa83f3017e93dbe (patch)
tree5a806618bc865b5752f6b5922ad3efff83ecce5e
parentc6d6623040e8be6c70e8d4166939143b21217658 (diff)
downloadgitlab-ce-754dc137f70709eb3d7e6853ffa83f3017e93dbe.tar.gz
migrate explore:projects:* to static bundle
-rw-r--r--app/assets/javascripts/dispatcher.js7
-rw-r--r--app/assets/javascripts/pages/explore/projects/index.js2
2 files changed, 1 insertions, 8 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js
index 8fac9cc0769..4b4906bd6ee 100644
--- a/app/assets/javascripts/dispatcher.js
+++ b/app/assets/javascripts/dispatcher.js
@@ -53,13 +53,6 @@ var Dispatcher;
case 'projects:issues:show':
shortcut_handler = true;
break;
- case 'explore:projects:index':
- case 'explore:projects:trending':
- case 'explore:projects:starred':
- import('./pages/explore/projects')
- .then(callDefault)
- .catch(fail);
- break;
case 'explore:groups:index':
import('./pages/explore/groups')
.then(callDefault)
diff --git a/app/assets/javascripts/pages/explore/projects/index.js b/app/assets/javascripts/pages/explore/projects/index.js
index c88cbf1a6ba..0c585e162cb 100644
--- a/app/assets/javascripts/pages/explore/projects/index.js
+++ b/app/assets/javascripts/pages/explore/projects/index.js
@@ -1,3 +1,3 @@
import ProjectsList from '~/projects_list';
-export default () => new ProjectsList();
+document.addEventListener('DOMContentLoaded', () => new ProjectsList());