summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorDennis Tang <dtang@gitlab.com>2018-06-11 22:57:04 -0700
committerDennis Tang <dtang@gitlab.com>2018-06-19 15:01:43 +0000
commitce0ce1cb196e924b13631565114352ed89eba5af (patch)
tree4a73c43d1951e6507326312f1c214bc52887035f /app/assets
parentcc0305565704e8f713cd615f5a6767498bd03706 (diff)
downloadgitlab-ce-ce0ce1cb196e924b13631565114352ed89eba5af.tar.gz
consolidate back into one controller
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/pages/projects/clusters/gcp/new/index.js5
-rw-r--r--app/assets/javascripts/pages/projects/index.js6
2 files changed, 6 insertions, 5 deletions
diff --git a/app/assets/javascripts/pages/projects/clusters/gcp/new/index.js b/app/assets/javascripts/pages/projects/clusters/gcp/new/index.js
new file mode 100644
index 00000000000..d4f34e32a48
--- /dev/null
+++ b/app/assets/javascripts/pages/projects/clusters/gcp/new/index.js
@@ -0,0 +1,5 @@
+import initGkeDropdowns from '~/projects/gke_cluster_dropdowns';
+
+document.addEventListener('DOMContentLoaded', () => {
+ initGkeDropdowns();
+});
diff --git a/app/assets/javascripts/pages/projects/index.js b/app/assets/javascripts/pages/projects/index.js
index 7bbba9acb38..ba8bc5bc5fa 100644
--- a/app/assets/javascripts/pages/projects/index.js
+++ b/app/assets/javascripts/pages/projects/index.js
@@ -5,11 +5,7 @@ import ShortcutsNavigation from '../../shortcuts_navigation';
document.addEventListener('DOMContentLoaded', () => {
const page = document.body.dataset.page;
- const newClusterViews = [
- 'projects:clusters:new',
- 'projects:clusters:gcp:create',
- 'projects:clusters:user:create',
- ];
+ const newClusterViews = ['projects:clusters:new', 'projects:clusters:create'];
if (newClusterViews.indexOf(page) > -1) {
gcpSignupOffer();