diff --git a/kotsadm/web/src/components/apps/AppSnapshotRestore.jsx b/kotsadm/web/src/components/apps/AppSnapshotRestore.jsx index 8250b6dca9..0d471bdce3 100644 --- a/kotsadm/web/src/components/apps/AppSnapshotRestore.jsx +++ b/kotsadm/web/src/components/apps/AppSnapshotRestore.jsx @@ -83,7 +83,7 @@ class AppSnapshotRestore extends Component { renderFailedRestoreView = (detail) => { if (detail?.warnings.length > 0 && detail?.errors?.length === 0) { return this.renderWarningsRestoreView(detail?.warnings); - } else { + } else if (detail?.errors?.length > 0) { return (
@@ -103,6 +103,22 @@ class AppSnapshotRestore extends Component {
) + } else { + return ( +
+
+ +

+ Application failed to restore

+

+ Your application failed to restore to {this.props.match.params.id} +

+
+
+

Contact your vendor for help troubleshooting this restore.

+
+
+ ) } } @@ -158,7 +174,7 @@ class AppSnapshotRestore extends Component {

Application restore in progress

After all volumes have been restored you will need to log back in to the admin console.

- {restoreDetail?.restoreDetail?.volumes?.length === 0 && restoreDetail?.restoreDetail?.warnings?.length === 0 && restoreDetail?.restoreDetail?.errors?.length === 0 && + {restoreDetail?.restoreDetail?.volumes?.length === 0 && hasNoErrorsOrWarnings &&
@@ -196,8 +212,9 @@ class AppSnapshotRestore extends Component {
: - !hasNoErrorsOrWarnings ? - this.renderFailedRestoreView(restoreDetail?.restoreDetail) : null + !hasNoErrorsOrWarnings || restoreFailing ? + this.renderFailedRestoreView(restoreDetail?.restoreDetail) + : null } );