diff --git a/src/Components/sharedComponents/ImageBuilderHeader.tsx b/src/Components/sharedComponents/ImageBuilderHeader.tsx index 95119f2f..6d2235ed 100644 --- a/src/Components/sharedComponents/ImageBuilderHeader.tsx +++ b/src/Components/sharedComponents/ImageBuilderHeader.tsx @@ -1,13 +1,6 @@ import React, { useState } from 'react'; -import { - Alert, - Button, - Popover, - Content, - Flex, - FlexItem, -} from '@patternfly/react-core'; +import { Button, Popover, Content, Flex, Alert } from '@patternfly/react-core'; import { ExternalLinkAltIcon, HelpIcon } from '@patternfly/react-icons'; // eslint-disable-next-line rulesdir/disallow-fec-relative-imports import { @@ -31,11 +24,6 @@ import './ImageBuilderHeader.scss'; import { useFlagWithEphemDefault } from '../../Utilities/useGetEnvironment'; import { ImportBlueprintModal } from '../Blueprints/ImportBlueprintModal'; -type ImageBuilderHeaderPropTypes = { - activeTab?: number; - inWizard?: boolean; -}; - const AboutImageBuilderPopover = () => { return ( { ); }; +type ImageBuilderHeaderPropTypes = { + activeTab?: number; + inWizard?: boolean; +}; + export const ImageBuilderHeader = ({ activeTab, inWizard, @@ -113,89 +106,78 @@ export const ImageBuilderHeader = ({ /> )} - - - - Images - - - } - /> - - {!inWizard && ( + - - - - - {importExportFlag && ( - - )} - + Images + - )} - - {!isOnBlueprintsTab && !inWizard && ( - - - Upcoming decommission of hosted Edge Management service - } - className="pf-v5-u-mt-sm pf-v5-u-mb-sm" - > - - - As of July 31, 2025, the hosted edge management service will - no longer be supported. This means that pushing image - updates to Immutable (OSTree) systems using the Hybrid Cloud - Console will be discontinued. For an alternative way to - manage edge systems, customers are encouraged to explore Red - Hat Edge Manager (RHEM). - - + } + actionsContent={ + <> + {!inWizard && ( + + + {importExportFlag && ( - - - - - + )} + + )} + + } + /> + {!isOnBlueprintsTab && !inWizard && !process.env.IS_ON_PREMISE && ( + Upcoming decommission of hosted Edge Management service} + className="pf-v6-u-mt-sm pf-v6-u-mb-sm" + > + + + As of July 31, 2025, the hosted edge management service will no + longer be supported. This means that pushing image updates to + Immutable (OSTree) systems using the Hybrid Cloud Console will + be discontinued. For an alternative way to manage edge systems, + customers are encouraged to explore Red Hat Edge Manager (RHEM). + + + + + + )}