Skip to content

Commit

Permalink
[INLONG-11465][Dashboard] The sink drop-down box supports search (#11466
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wohainilaodou authored Nov 7, 2024
1 parent ad35873 commit d154169
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export const getFormContent = (
csvData,
fileName,
setInlongStreamID,
inlongStreamId,
) => [
{
type: 'select',
Expand Down Expand Up @@ -219,7 +220,7 @@ export const getFormContent = (
pageNum: 1,
pageSize: 100,
inlongGroupId,
inlongStreamId: values.inlongStreamId,
inlongStreamId: inlongStreamId,
},
}),
requestParams: {
Expand All @@ -230,6 +231,9 @@ export const getFormContent = (
})) || [],
},
},
filterOption: (keyword: string, option: { label: any }) => {
return (option?.label ?? '').toLowerCase().includes(keyword.toLowerCase());
},
}),
},
{
Expand Down
1 change: 1 addition & 0 deletions inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ const Comp: React.FC<Props> = ({ inlongGroupId }) => {
csvData,
fileName,
setInlongStreamID,
inlongStreamID,
)}
style={{ marginBottom: 30, gap: 10 }}
onFilter={allValues =>
Expand Down

0 comments on commit d154169

Please sign in to comment.