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 2971fc1764 [INLONG-9260][Dashboard] Enable batch import in Synchronize 
dashboard and detail page (#9261)
2971fc1764 is described below

commit 2971fc1764d0bd89e8b20d1f99fa807e389f3faf
Author: feat <featzh...@outlook.com>
AuthorDate: Fri Nov 10 03:40:35 2023 -0600

    [INLONG-9260][Dashboard] Enable batch import in Synchronize dashboard and 
detail page (#9261)
    
    Co-authored-by: averyzhang <averyzh...@tencent.com>
---
 inlong-dashboard/src/ui/components/FieldList/DetailModal.tsx       | 2 ++
 .../src/ui/pages/SynchronizeDetail/SyncTransform/DetailModal.tsx   | 7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/inlong-dashboard/src/ui/components/FieldList/DetailModal.tsx 
b/inlong-dashboard/src/ui/components/FieldList/DetailModal.tsx
index 2d4e39c586..6f1315fe4c 100644
--- a/inlong-dashboard/src/ui/components/FieldList/DetailModal.tsx
+++ b/inlong-dashboard/src/ui/components/FieldList/DetailModal.tsx
@@ -253,6 +253,8 @@ const Comp: React.FC<Props> = ({ inlongGroupId, 
inlongStreamId, isSource, ...mod
             <EditableTable
               columns={isSource === true ? fieldList : sinkFieldList}
               dataSource={isSource === true ? data?.fieldList : 
sinkData?.list[0]?.sinkFieldList}
+              canBatchAdd={true}
+              upsetByFieldKey={true}
             ></EditableTable>
           </Form.Item>
         </Form>
diff --git 
a/inlong-dashboard/src/ui/pages/SynchronizeDetail/SyncTransform/DetailModal.tsx 
b/inlong-dashboard/src/ui/pages/SynchronizeDetail/SyncTransform/DetailModal.tsx
index 21f88b1bb8..2c68c358b8 100644
--- 
a/inlong-dashboard/src/ui/pages/SynchronizeDetail/SyncTransform/DetailModal.tsx
+++ 
b/inlong-dashboard/src/ui/pages/SynchronizeDetail/SyncTransform/DetailModal.tsx
@@ -318,7 +318,12 @@ const Comp: React.FC<Props> = ({
             label={i18n.t('pages.SynchronizeDetail.Transform.FilterRules')}
             wrapperCol={{ offset: 1 }}
           >
-            <EditableTable columns={columns} dataSource={data}></EditableTable>
+            <EditableTable
+              columns={columns}
+              dataSource={data}
+              canBatchAdd={true}
+              upsetByFieldKey={true}
+            ></EditableTable>
           </Form.Item>
         </Form>
       </Modal>

Reply via email to