Skip to content

Commit

Permalink
Add camel targets and limit Card's dropdown height (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed Jun 26, 2023
1 parent e4f820a commit 2caab3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export const SelectCard: React.FC<SelectCardProps> = ({
selections={value}
isOpen={isSelectOpen}
direction="down"
maxHeight={130}
>
{options.map((el, index) => (
<SelectOption key={index} value={el.value} />
Expand Down
10 changes: 8 additions & 2 deletions ui-pf4/src/main/webapp/src/layout/TransformationPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,14 @@ export const AZURE: TransformationPathOption = {

export const CAMEL: TransformationPathOption = {
label: "Camel",
description: "Rules for the migration from Apache Camel 2 to Apache Camel 3.",
options: "camel",
description: "Rules to support upgrading to a newer version of Camel.",
options: Array.from({ length: 22 }, (_, index) => `3.${index}`)
.concat(["4.0"])
.map((version) => ({
label: `camel:${version}`,
value: `camel:${version}`,
default: version === "3.21",
})),
iconSrc: multiply,
};

Expand Down

0 comments on commit 2caab3e

Please sign in to comment.