diff --git a/libs/ui-lib/lib/common/components/clusterConfiguration/DownloadIso.tsx b/libs/ui-lib/lib/common/components/clusterConfiguration/DownloadIso.tsx
index 2ba7e16b0c..a19f28719e 100644
--- a/libs/ui-lib/lib/common/components/clusterConfiguration/DownloadIso.tsx
+++ b/libs/ui-lib/lib/common/components/clusterConfiguration/DownloadIso.tsx
@@ -103,6 +103,8 @@ const DownloadIso = ({
}
/>
+
+
= ({
}
- variant={errorMessage ? 'error' : 'default'}
- id={errorMessage ? `${fieldId}-helper-error` : `${fieldId}-helper`}
+ variant={'default'}
+ id={`${fieldId}-helper`}
data-testid={`input-textarea-${fieldId}-helper-text`}
>
- {errorMessage ? errorMessage : helperText}
+ {helperText}
+ {errorMessage && (
+ }
+ variant={'error'}
+ id={`${fieldId}-helper-error`}
+ data-testid={`input-textarea-${fieldId}-helper-text`}
+ >
+ {errorMessage}
+
+ )}
)}
diff --git a/libs/ui-lib/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx b/libs/ui-lib/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx
index fc49a78509..f58c451b74 100644
--- a/libs/ui-lib/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx
+++ b/libs/ui-lib/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import { Alert } from '@patternfly/react-core';
+import { Alert, Stack, StackItem } from '@patternfly/react-core';
import {
REDHAT_CONSOLE_OPENSHIFT,
canDownloadKubeconfig,
@@ -43,41 +43,49 @@ const ClusterDetailStatusMessages = ({
: '';
return (
- <>
+
{!isSingleClusterFeatureEnabled &&
typeof inactiveDeletionHours === 'number' &&
canDownloadKubeconfig(cluster.status) && (
+
+ 0
+ ? `Download and save your kubeconfig file in a safe place. This file will be automatically ` +
+ `deleted from Assisted Installer's service in ${dateDifference} days.`
+ : `Kubeconfig file was automatically deleted ${inactiveDeletionDays} days after installation.`
+ }
+ />
+
+ )}
+ {showAddHostsAlert && (
+
0
- ? `Download and save your kubeconfig file in a safe place. This file will be automatically ` +
- `deleted from Assisted Installer's service in ${dateDifference} days.`
- : `Kubeconfig file was automatically deleted ${inactiveDeletionDays} days after installation.`
+
+ {isClusterPlatformTypeVM(cluster)
+ ? 'Add new hosts by using the platform auto-scale feature or manually generating a new Discovery ISO under the "Add hosts" tab on '
+ : 'Add new hosts by generating a new Discovery ISO under your cluster\'s "Add hosts" tab on '}
+
+ console.redhat.com/openshift
+
+ .
+
}
/>
- )}
- {showAddHostsAlert && (
-
- {isClusterPlatformTypeVM(cluster)
- ? 'Add new hosts by using the platform auto-scale feature or manually generating a new Discovery ISO under the "Add hosts" tab on '
- : 'Add new hosts by generating a new Discovery ISO under your cluster\'s "Add hosts" tab on '}
-
- console.redhat.com/openshift
-
- .
-
- }
- />
+
+ )}
+ {platformLink && (
+
+
+
)}
- {platformLink && }
- >
+
);
};