Skip to content

Commit

Permalink
🐛 Restore target selection warning (konveyor#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 authored Nov 10, 2023
1 parent 3c5080e commit 9d4c60c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions client/src/app/pages/applications/analysis-wizard/set-targets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Gallery,
GalleryItem,
Form,
Alert,
} from "@patternfly/react-core";
import { useTranslation } from "react-i18next";
import { useFormContext } from "react-hook-form";
Expand Down Expand Up @@ -148,6 +149,16 @@ export const SetTargets: React.FC = () => {
}}
/>
</TextContent>
{values.selectedTargets.length === 0 &&
values.customRulesFiles.length === 0 &&
!values.sourceRepository && (
<Alert
variant="warning"
isInline
title={t("wizard.label.skipTargets")}
/>
)}

<Gallery hasGutter>
{targetOrderSetting.isSuccess
? targetOrderSetting.data.map((id, index) => {
Expand Down

0 comments on commit 9d4c60c

Please sign in to comment.