diff --git a/kotsadm/web/src/components/PreflightResultPage.jsx b/kotsadm/web/src/components/PreflightResultPage.jsx index 4c86ff8196..13ae41c8a0 100644 --- a/kotsadm/web/src/components/PreflightResultPage.jsx +++ b/kotsadm/web/src/components/PreflightResultPage.jsx @@ -147,11 +147,11 @@ class PreflightResultPage extends Component { if (showSkipModal) { this.hideSkipModal(); } - preflightJSON = JSON.parse(preflightResultData?.result); } const hasResult = size(preflightJSON.results) > 0; const hasErrors = size(preflightJSON.errors) > 0; + const preflightState = getPreflightResultState(preflightJSON); return (
@@ -177,7 +177,7 @@ class PreflightResultPage extends Component {
)} - {hasErrors && this.renderErrors(preflightJSON?.errors) } + {hasErrors && this.renderErrors(preflightJSON?.errors)} {stopPolling && !hasErrors &&
- { hasErrors && null } - { (hasResult || stopPolling) && + {this.props.fromLicenseFlow &&
+ {(hasResult || stopPolling) && preflightState !== "pass" && + + + + }
} - { (!hasResult && !stopPolling) && -
- -
- }
-

Skipping preflight checks will not cancel them. They will continue to run in the background. Do you want to continue to the {preflightResultData?.appSlug} dashboard?

+ - +
@@ -242,10 +235,9 @@ class PreflightResultPage extends Component { className="Modal" >
-

Preflight is showing some issues, are you sure you want to continue?

- +