01ed3a1511
Include a new policy in Clusterables (projects and groups), which checks if another cluster can be added clusterable_has_cluster? and multiple_clusters_available private methods will be overriden in EE Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/34758
6 lines
294 B
Text
6 lines
294 B
Text
.nav-controls
|
|
- if clusterable.can_add_cluster?
|
|
= link_to s_('ClusterIntegration|Add Kubernetes cluster'), clusterable.new_path, class: 'btn btn-success js-add-cluster'
|
|
- else
|
|
%span.btn.btn-add-cluster.disabled.js-add-cluster
|
|
= s_("ClusterIntegration|Add Kubernetes cluster")
|