Skip to content

Commit

Permalink
fix view preflights being missing on some version history rows (#2057)
Browse files Browse the repository at this point in the history
  • Loading branch information
GraysonNull committed Aug 6, 2021
1 parent 982bf65 commit 584f7cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/components/apps/AppVersionHistoryRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ function renderVersionStatus(version, app, match, viewLogs) {
if (isPastVersion && app.hasPreflight) {
if (preflightsFailed) {
preflightBlock = (<Link to={`/app/${match.params.slug}/downstreams/${clusterSlug}/version-history/preflight/${version.sequence}`} className="replicated-link u-marginLeft--5 u-fontSize--small">View preflights</Link>);
} else if (version.status !== "pending_config") {
preflightBlock = (<Link to={`/app/${match.params.slug}/downstreams/${clusterSlug}/version-history/preflight/${version.sequence}`} className="replicated-link u-marginLeft--5 u-fontSize--small">View preflights</Link>);
}
}
if (version.status === "pending_preflight") {
Expand All @@ -157,6 +159,8 @@ function renderVersionStatus(version, app, match, viewLogs) {
} else if (app.hasPreflight) {
if (preflightsFailed) {
preflightBlock = (<Link to={`/app/${match.params.slug}/downstreams/${clusterSlug}/version-history/preflight/${version.sequence}`} className="replicated-link u-marginLeft--5 u-fontSize--small">View preflights</Link>);
} else if (version.status !== "pending_config") {
preflightBlock = (<Link to={`/app/${match.params.slug}/downstreams/${clusterSlug}/version-history/preflight/${version.sequence}`} className="replicated-link u-marginLeft--5 u-fontSize--small">View preflights</Link>);
}
}

Expand Down

0 comments on commit 584f7cd

Please sign in to comment.