Commit 82430b2d authored by Dennis Tang's avatar Dennis Tang

cleanup

parent db30e7f3
......@@ -83,18 +83,17 @@ class Projects::ClustersController < Projects::ApplicationController
redirect_to project_cluster_path(project, @cluster)
else
generate_gcp_authorize_url
active_tab = params[:type]
case params[:type]
when 'new'
@new_cluster = @cluster
tap_existing_cluster
existing_cluster
when 'existing'
@existing_cluster = @cluster
tap_new_cluster
new_cluster
end
render :new, locals: { active_tab: active_tab }
render :new, locals: { active_tab: params[:type] }
end
end
......
-# TODO: Combine gcp/new and user/new views
- breadcrumb_title 'Kubernetes'
- page_title _("Kubernetes Cluster")
- active_tab = local_assigns.fetch(:active_tab, 'new')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment