From 9d4c60c5a6e9d3ba547dd35d80d24a6868fae248 Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Thu, 9 Nov 2023 19:24:24 -0500 Subject: [PATCH] :bug: Restore target selection warning (#1534) Resolves https://issues.redhat.com/browse/MTA-1506 Closes #1529 Signed-off-by: ibolton336 --- .../applications/analysis-wizard/set-targets.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/src/app/pages/applications/analysis-wizard/set-targets.tsx b/client/src/app/pages/applications/analysis-wizard/set-targets.tsx index 5d7adca8f..58f12f2fd 100644 --- a/client/src/app/pages/applications/analysis-wizard/set-targets.tsx +++ b/client/src/app/pages/applications/analysis-wizard/set-targets.tsx @@ -6,6 +6,7 @@ import { Gallery, GalleryItem, Form, + Alert, } from "@patternfly/react-core"; import { useTranslation } from "react-i18next"; import { useFormContext } from "react-hook-form"; @@ -148,6 +149,16 @@ export const SetTargets: React.FC = () => { }} /> + {values.selectedTargets.length === 0 && + values.customRulesFiles.length === 0 && + !values.sourceRepository && ( + + )} + {targetOrderSetting.isSuccess ? targetOrderSetting.data.map((id, index) => {