Feroze Mohideen 2 سال پیش
والد
کامیت
3ae6faca02
1فایلهای تغییر یافته به همراه15 افزوده شده و 6 حذف شده
  1. 15 6
      dashboard/src/main/home/infrastructure-dashboard/forms/aws/GrantAWSPermissions.tsx

+ 15 - 6
dashboard/src/main/home/infrastructure-dashboard/forms/aws/GrantAWSPermissions.tsx

@@ -307,12 +307,21 @@ const GrantAWSPermissions: React.FC<Props> = ({
               </Link>
               </Link>
             </Text>
             </Text>
             <Spacer y={1} />
             <Spacer y={1} />
-            <CheckItem
-              preflightCheck={{
-                title: "AWS account accessible",
-                status: isAccountAccessible ? "success" : "pending",
-              }}
-            />
+            {isAccountAccessible ? (
+              <CheckItem
+                preflightCheck={{
+                  title: "AWS account is accessible by Porter!",
+                  status: "success",
+                }}
+              />
+            ) : (
+              <CheckItem
+                preflightCheck={{
+                  title: "Checking if AWS account is accessible by Porter",
+                  status: "pending",
+                }}
+              />
+            )}
             <Spacer y={1} />
             <Spacer y={1} />
             <Container row>
             <Container row>
               <Button
               <Button