From 6473f460ed60e8c220277c00a9657405e1795d5f Mon Sep 17 00:00:00 2001 From: hitozhang Date: Mon, 19 Feb 2024 16:52:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dkubeconfig=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=8C=89=E9=92=AE=E7=A6=81=E7=94=A8=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(merge=20request=20!1626)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Squash merge branch 'fix_import_cluster' into 'master' fix: 修复kubeconfig导入按钮禁用问题 --- .../frontend/src/views/cluster-manage/add/import-cluster.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bcs-ui/frontend/src/views/cluster-manage/add/import-cluster.vue b/bcs-ui/frontend/src/views/cluster-manage/add/import-cluster.vue index 15718cfc9f..7103d0aa7b 100644 --- a/bcs-ui/frontend/src/views/cluster-manage/add/import-cluster.vue +++ b/bcs-ui/frontend/src/views/cluster-manage/add/import-cluster.vue @@ -170,7 +170,9 @@ theme="primary" class="mr-[5px]" :loading="testLoading" - :disabled="!importClusterInfo.cloudID || !importClusterInfo.provider" + :disabled="importClusterInfo.importType === 'provider' + ? (!importClusterInfo.cloudID || !importClusterInfo.provider) + : !importClusterInfo.yaml" @click="handleTest">{{$t('cluster.create.button.textKubeConfig')}}