From 1c9b2242fabeb5b6073bf69debb77f843da7c88b Mon Sep 17 00:00:00 2001 From: regexowl Date: Tue, 12 Mar 2024 09:53:05 +0100 Subject: [PATCH] V2Wizard: Add FSC alert for bare metal images This mirrors the functionality of https://github.com/osbuild/image-builder-frontend/pull/1786 in V2Wizard. An alert was added to the FSC step to make users aware that customisations are not being applied to bare metal - installer images. --- .../steps/FileSystem/FileSystemConfiguration.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx b/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx index b2daa1f8..3cbd7d86 100644 --- a/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx +++ b/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx @@ -1,6 +1,7 @@ import React, { useState } from 'react'; import { + Alert, Button, Popover, Text, @@ -22,6 +23,7 @@ import { useAppDispatch, useAppSelector } from '../../../../store/hooks'; import { changePartitionMinSize, changePartitionMountpoint, + selectImageTypes, selectPartitions, } from '../../../../store/wizardSlice'; import UsrSubDirectoriesDisabled from '../../UsrSubDirectoriesDisabled'; @@ -35,6 +37,7 @@ export type Partition = { const FileSystemConfiguration = () => { const partitions = useAppSelector((state) => selectPartitions(state)); + const environments = useAppSelector((state) => selectImageTypes(state)); return ( <> @@ -67,6 +70,13 @@ const FileSystemConfiguration = () => { + {environments.includes('image-installer') && ( + + )}