From 805f4ca209ef27aa6af0b22ccc2715fe1a71729b Mon Sep 17 00:00:00 2001 From: Feroze Mohideen Date: Sun, 21 Apr 2024 13:58:21 -0400 Subject: [PATCH] disable gcp (#4566) --- .../forms/CloudProviderSelect.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dashboard/src/main/home/infrastructure-dashboard/forms/CloudProviderSelect.tsx b/dashboard/src/main/home/infrastructure-dashboard/forms/CloudProviderSelect.tsx index 6a4bf86367..fdd0d33e12 100644 --- a/dashboard/src/main/home/infrastructure-dashboard/forms/CloudProviderSelect.tsx +++ b/dashboard/src/main/home/infrastructure-dashboard/forms/CloudProviderSelect.tsx @@ -39,18 +39,23 @@ const CloudProviderSelect: React.FC = ({ onComplete }) => { /> - {[CloudProviderAWS, CloudProviderGCP, CloudProviderAzure].map( + {[CloudProviderAWS, CloudProviderAzure, CloudProviderGCP].map( (provider: ClientCloudProvider, i: number) => { + const disabled = provider === CloudProviderGCP; return ( { + if (disabled) { + return; + } if (user?.isPorterUser) { onComplete(provider); } else { setCloudProvider(provider); } }} + disabled={disabled} > {provider.name} @@ -67,7 +72,8 @@ const CloudProviderSelect: React.FC = ({ onComplete }) => { - Get started on the Porter Cloud and eject to your own cloud account later. + Get started on the Porter Cloud and eject to your own cloud account + later.