From bcccf7caddaeb2ec6d65eb1851cd8e0a6b950dc2 Mon Sep 17 00:00:00 2001 From: loganhz Date: Fri, 19 Jan 2018 16:27:49 +0800 Subject: [PATCH] Only show add node button for RKE cluster https://github.com/rancher/rancher/issues/10940 --- app/models/cluster.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/cluster.js b/app/models/cluster.js index fb758952f..b7c2d9663 100644 --- a/app/models/cluster.js +++ b/app/models/cluster.js @@ -13,7 +13,9 @@ var Cluster = Resource.extend(ResourceUsage, { machines: hasMany('id', 'machine', 'clusterId'), clusterRoleTemplateBindings: hasMany('id', 'clusterRoleTemplateBinding', 'clusterId'), - canAddNode: true, // @TODO-2.0 + canAddNode: computed('rancherKubernetesEngineConfig', function() { + return !!this.get('rancherKubernetesEngineConfig'); + }), actions: { edit() {