Manually revert "Wizard: temporarily disable OCI"
This reverts commit efed39d, manual revert was needed as the tile were migrated to cards in the meantime.
This commit is contained in:
parent
2f8b550408
commit
139dd367fe
1 changed files with 13 additions and 34 deletions
|
|
@ -7,7 +7,6 @@ import {
|
|||
FormGroup,
|
||||
Popover,
|
||||
Radio,
|
||||
Tooltip,
|
||||
Content,
|
||||
CardHeader,
|
||||
Gallery,
|
||||
|
|
@ -33,10 +32,7 @@ import {
|
|||
selectImageTypes,
|
||||
} from '../../../../store/wizardSlice';
|
||||
import isRhel from '../../../../Utilities/isRhel';
|
||||
import {
|
||||
useFlag,
|
||||
useGetEnvironment,
|
||||
} from '../../../../Utilities/useGetEnvironment';
|
||||
import { useGetEnvironment } from '../../../../Utilities/useGetEnvironment';
|
||||
|
||||
type TargetEnvironmentCardProps = {
|
||||
title: string;
|
||||
|
|
@ -108,10 +104,6 @@ const TargetEnvironment = () => {
|
|||
const prefetchSources = provisioningApi.usePrefetch('getSourceList');
|
||||
const prefetchActivationKeys = rhsmApi.usePrefetch('listActivationKeys');
|
||||
|
||||
const showOracleUnavailableWarning = useFlag(
|
||||
'image-builder.oci.unavailable-warning.enabled'
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (!isFedoraEnv) prefetchActivationKeys();
|
||||
}, []);
|
||||
|
|
@ -138,18 +130,6 @@ const TargetEnvironment = () => {
|
|||
}
|
||||
};
|
||||
|
||||
const ociTile = (
|
||||
<TargetEnvironmentCard
|
||||
testId="upload-oci"
|
||||
title="Oracle Cloud Infrastructure"
|
||||
imageSrc={'/apps/frontend-assets/partners-icons/oracle-short.svg'}
|
||||
imageAlt="Oracle Cloud Infrastructure logo"
|
||||
handleOnClick={() => handleToggleEnvironment('oci')}
|
||||
isSelected={environments.includes('oci')}
|
||||
isDisabled={showOracleUnavailableWarning}
|
||||
/>
|
||||
);
|
||||
|
||||
const publicCloudsSupported = () => {
|
||||
return (
|
||||
supportedEnvironments?.includes('aws') ||
|
||||
|
|
@ -205,19 +185,18 @@ const TargetEnvironment = () => {
|
|||
isSelected={environments.includes('azure')}
|
||||
/>
|
||||
)}
|
||||
{supportedEnvironments?.includes('oci') &&
|
||||
showOracleUnavailableWarning && (
|
||||
<Tooltip
|
||||
content={
|
||||
<div>Oracle Cloud support is temporarily unavailable</div>
|
||||
}
|
||||
>
|
||||
<div>{ociTile}</div>
|
||||
</Tooltip>
|
||||
)}
|
||||
{supportedEnvironments?.includes('oci') &&
|
||||
!showOracleUnavailableWarning &&
|
||||
ociTile}
|
||||
{supportedEnvironments?.includes('oci') && (
|
||||
<TargetEnvironmentCard
|
||||
testId="upload-oci"
|
||||
title="Oracle Cloud Infrastructure"
|
||||
imageSrc={
|
||||
'/apps/frontend-assets/partners-icons/oracle-short.svg'
|
||||
}
|
||||
imageAlt="Oracle Cloud Infrastructure logo"
|
||||
handleOnClick={() => handleToggleEnvironment('oci')}
|
||||
isSelected={environments.includes('oci')}
|
||||
/>
|
||||
)}
|
||||
</Gallery>
|
||||
</FormGroup>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue