diff --git a/libs/ui-lib/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx b/libs/ui-lib/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx
index 363d2b7aaf..62d40c2218 100644
--- a/libs/ui-lib/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx
+++ b/libs/ui-lib/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx
@@ -29,11 +29,17 @@ import { usePullSecret } from '../../hooks';
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
import { useFeatureDetection } from '../../hooks/use-feature-detection';
import { OpenshiftVersionsContextProvider } from '../clusterWizard/OpenshiftVersionsContext';
-import { BrowserRouter } from 'react-router-dom-v5-compat';
+import {
+ unstable_HistoryRouter as HistoryRouter,
+ HistoryRouterProps,
+ BrowserRouter,
+} from 'react-router-dom-v5-compat';
type AssistedInstallerDetailCardProps = {
aiClusterId: string;
allEnabledFeatures: FeatureListType;
+ history: HistoryRouterProps['history'];
+ basename: HistoryRouterProps['basename'];
permissions?: AssistedInstallerOCMPermissionTypesListType;
};
@@ -64,7 +70,7 @@ const ClusterLoadFailed = ({ clusterId, error }: { clusterId: Cluster['id']; err
]}
+ actions={[]}
content={error}
/>
@@ -84,7 +90,7 @@ const LoadingDefaultConfigFailedCard = () => (
]}
+ actions={[]}
/>
@@ -94,6 +100,8 @@ const LoadingDefaultConfigFailedCard = () => (
const AssistedInstallerDetailCard = ({
aiClusterId,
allEnabledFeatures,
+ history,
+ basename,
permissions,
}: AssistedInstallerDetailCardProps) => {
useFeatureDetection(allEnabledFeatures);
@@ -136,33 +144,36 @@ const AssistedInstallerDetailCard = ({
);
const isOutdatedClusterData = uiState === ResourceUIState.POLLING_ERROR;
+
return (
-
-
-
-
- }
- errorUI={}
- >
- }
- cluster={cluster}
- cpuArchitecture={infraEnv.cpuArchitecture as CpuArchitecture}
- openshiftVersion={cluster.openshiftVersion}
- platformType={cluster.platform?.type}
+
+
+
+
+
+ }
+ errorUI={}
>
- {content}
-
- {isOutdatedClusterData && }
-
-
-
-
-
-
-
-
+ }
+ cluster={cluster}
+ cpuArchitecture={infraEnv.cpuArchitecture as CpuArchitecture}
+ openshiftVersion={cluster.openshiftVersion}
+ platformType={cluster.platform?.type}
+ >
+ {content}
+
+ {isOutdatedClusterData && }
+
+
+
+
+
+
+
+
+
);
};
diff --git a/libs/ui-lib/lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx b/libs/ui-lib/lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx
index d0027b2dba..9e1521bb78 100644
--- a/libs/ui-lib/lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx
+++ b/libs/ui-lib/lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx
@@ -81,7 +81,7 @@ const ClusterWizardFooter = ({
const { alerts } = useAlerts();
const navigate = useNavigate();
- const handleCancel = React.useCallback(() => navigate('..'), [navigate]);
+ const handleCancel = React.useCallback(() => navigate('/cluster-list'), [navigate]);
const alertsSection = alerts.length ? : undefined;