From e2d46640f9a0bc19edde30effe7591aa6597f8f5 Mon Sep 17 00:00:00 2001 From: regexowl Date: Tue, 12 Mar 2024 09:28:38 +0100 Subject: [PATCH] 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. --- .../formComponents/FileSystemConfiguration.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Components/CreateImageWizard/formComponents/FileSystemConfiguration.js b/src/Components/CreateImageWizard/formComponents/FileSystemConfiguration.js index d805660d..6626ef83 100644 --- a/src/Components/CreateImageWizard/formComponents/FileSystemConfiguration.js +++ b/src/Components/CreateImageWizard/formComponents/FileSystemConfiguration.js @@ -302,6 +302,12 @@ const FileSystemConfiguration = ({ ...props }) => { return ; } + const hasIsoTarget = () => { + const isoTarget = + getState().values['target-environment']?.['image-installer']; + return isoTarget; + }; + return ( {() => ( @@ -355,6 +361,13 @@ const FileSystemConfiguration = ({ ...props }) => { + {hasIsoTarget() && ( + + )}