diff options
author | Dennis Tang <dtang@gitlab.com> | 2018-06-11 22:57:04 -0700 |
---|---|---|
committer | Dennis Tang <dtang@gitlab.com> | 2018-06-19 15:01:43 +0000 |
commit | ce0ce1cb196e924b13631565114352ed89eba5af (patch) | |
tree | 4a73c43d1951e6507326312f1c214bc52887035f /app/assets | |
parent | cc0305565704e8f713cd615f5a6767498bd03706 (diff) | |
download | gitlab-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.js | 5 | ||||
-rw-r--r-- | app/assets/javascripts/pages/projects/index.js | 6 |
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(); |