This is an automated email from the ASF dual-hosted git repository. dockerzhang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push: new d154169c00 [INLONG-11465][Dashboard] The sink drop-down box supports search (#11466) d154169c00 is described below commit d154169c00e52f56c25d4bd1cff5a43e77f4cbb9 Author: kamianlaida <165994047+wohainilao...@users.noreply.github.com> AuthorDate: Thu Nov 7 18:46:59 2024 +0800 [INLONG-11465][Dashboard] The sink drop-down box supports search (#11466) --- inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx | 6 +++++- inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx index fb571449d5..c9bd6f6852 100644 --- a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx +++ b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx @@ -166,6 +166,7 @@ export const getFormContent = ( csvData, fileName, setInlongStreamID, + inlongStreamId, ) => [ { type: 'select', @@ -219,7 +220,7 @@ export const getFormContent = ( pageNum: 1, pageSize: 100, inlongGroupId, - inlongStreamId: values.inlongStreamId, + inlongStreamId: inlongStreamId, }, }), requestParams: { @@ -230,6 +231,9 @@ export const getFormContent = ( })) || [], }, }, + filterOption: (keyword: string, option: { label: any }) => { + return (option?.label ?? '').toLowerCase().includes(keyword.toLowerCase()); + }, }), }, { diff --git a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx index c7eebf1895..913d583eb4 100644 --- a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx +++ b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx @@ -162,6 +162,7 @@ const Comp: React.FC<Props> = ({ inlongGroupId }) => { csvData, fileName, setInlongStreamID, + inlongStreamID, )} style={{ marginBottom: 30, gap: 10 }} onFilter={allValues =>