cleanup
This commit is contained in:
parent
db30e7f3b3
commit
82430b2d46
|
@ -83,18 +83,17 @@ class Projects::ClustersController < Projects::ApplicationController
|
||||||
redirect_to project_cluster_path(project, @cluster)
|
redirect_to project_cluster_path(project, @cluster)
|
||||||
else
|
else
|
||||||
generate_gcp_authorize_url
|
generate_gcp_authorize_url
|
||||||
active_tab = params[:type]
|
|
||||||
|
|
||||||
case params[:type]
|
case params[:type]
|
||||||
when 'new'
|
when 'new'
|
||||||
@new_cluster = @cluster
|
@new_cluster = @cluster
|
||||||
tap_existing_cluster
|
existing_cluster
|
||||||
when 'existing'
|
when 'existing'
|
||||||
@existing_cluster = @cluster
|
@existing_cluster = @cluster
|
||||||
tap_new_cluster
|
new_cluster
|
||||||
end
|
end
|
||||||
|
|
||||||
render :new, locals: { active_tab: active_tab }
|
render :new, locals: { active_tab: params[:type] }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
-# TODO: Combine gcp/new and user/new views
|
|
||||||
- breadcrumb_title 'Kubernetes'
|
- breadcrumb_title 'Kubernetes'
|
||||||
- page_title _("Kubernetes Cluster")
|
- page_title _("Kubernetes Cluster")
|
||||||
- active_tab = local_assigns.fetch(:active_tab, 'new')
|
- active_tab = local_assigns.fetch(:active_tab, 'new')
|
||||||
|
|
Loading…
Reference in New Issue