Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INLONG-11465][Dashboard] The sink drop-down box supports search #11466

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading