Explorar el Código

[POR-1840] show predeploy logs on success (#3773)

Feroze Mohideen hace 2 años
padre
commit
27e49bb8af

+ 13 - 14
dashboard/src/main/home/app-dashboard/app-view/tabs/activity-feed/events/cards/PreDeployEventCard.tsx

@@ -59,17 +59,17 @@ const PreDeployEventCard: React.FC<Props> = ({ event, appName, projectId, cluste
           <Icon height="12px" src={getStatusIcon(event.status)} />
           <Spacer inline width="10px" />
           {renderStatusText(event)}
-          {(event.status !== "SUCCESS") &&
-            <>
-              <Spacer inline x={1} />
-              <Wrapper>
-                <Link to={`/apps/${appName}/events?event_id=${event.id}&service=${appName}-predeploy`} hasunderline>
-                  <Container row>
-                    <Icon src={document} height="10px" />
-                    <Spacer inline width="5px" />
-                    View details
-                  </Container>
-                </Link>
+          <Spacer inline x={1} />
+          <Wrapper>
+            <Link to={`/apps/${appName}/events?event_id=${event.id}&service=${appName}-predeploy`} hasunderline>
+              <Container row>
+                <Icon src={document} height="10px" />
+                <Spacer inline width="5px" />
+                View details
+              </Container>
+            </Link>
+            {(event.status !== "SUCCESS") &&
+              <>
                 <Spacer inline x={1} />
                 <Link hasunderline onClick={() => triggerWorkflow({
                   projectId,
@@ -82,9 +82,8 @@ const PreDeployEventCard: React.FC<Props> = ({ event, appName, projectId, cluste
                     Retry
                   </Container>
                 </Link>
-              </Wrapper>
-            </>
-          }
+              </>}
+          </Wrapper>
           <Spacer inline x={1} />
         </Container>
       </Container>