Soham Parekh 3 лет назад
Родитель
Сommit
69554d2eda

+ 10 - 8
dashboard/src/main/home/cluster-dashboard/preview-environments/deployments/DeploymentCard.tsx

@@ -271,9 +271,10 @@ const DeploymentCard: React.FC<{
               </>
             ) : null}
 
-            {deployment.status === DeploymentStatus.Created &&
-              !deployment.subdomain && (
-                <>
+            {deployment.status !== DeploymentStatus.Creating && (
+              <>
+                {deployment.subdomain &&
+                deployment.status === DeploymentStatus.Created ? (
                   <RowButton
                     onClick={(e) => {
                       e.preventDefault();
@@ -286,11 +287,12 @@ const DeploymentCard: React.FC<{
                     <i className="material-icons">open_in_new</i>
                     View Live
                   </RowButton>
-                  <DeploymentCardActionsDropdown
-                    options={DeploymentCardActions}
-                  />
-                </>
-              )}
+                ) : null}
+                <DeploymentCardActionsDropdown
+                  options={DeploymentCardActions}
+                />
+              </>
+            )}
             {/* <Button
               onClick={() => {
                 setCurrentOverlay({