Commit bfec22a0 authored by Mike Greiling's avatar Mike Greiling Committed by Thong Kuah

Correctly enable "Add Kubernetes cluster" button

parent 7e4f76ea
-# This partial is overridden in EE
.nav-controls
%span.btn.btn-add-cluster.disabled.js-add-cluster
= s_("ClusterIntegration|Add Kubernetes cluster")
- if clusterable.can_create_cluster? && clusterable.clusters.empty?
= link_to s_('ClusterIntegration|Add Kubernetes cluster'), clusterable.new_path, class: 'btn btn-success'
- else
%span.btn.btn-add-cluster.disabled.js-add-cluster
= s_("ClusterIntegration|Add Kubernetes cluster")
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