Wizard: Add FSC alert for bare metal images

FSC customisations are not being applied to bare metal - installer images, this adds an alert to make users aware of the fact.
This commit is contained in:
regexowl 2024-03-12 09:28:38 +01:00 committed by Klara Simickova
parent 8e185a6498
commit e2d46640f9

View file

@ -302,6 +302,12 @@ const FileSystemConfiguration = ({ ...props }) => {
return <Spinner size="lg" />;
}
const hasIsoTarget = () => {
const isoTarget =
getState().values['target-environment']?.['image-installer'];
return isoTarget;
};
return (
<FormSpy>
{() => (
@ -355,6 +361,13 @@ const FileSystemConfiguration = ({ ...props }) => {
</Button>
</Text>
</TextContent>
{hasIsoTarget() && (
<Alert
variant="warning"
isInline
title="Filesystem customizations are not applied to 'Bare metal - Installer' images"
/>
)}
<Table
aria-label="File system table"
className={isDragging && styles.modifiers.dragOver}