This is an automated email from the ASF dual-hosted git repository.
leezng 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 337213ac9 [INLONG-6982][Dashboard] Data source and data storage bullet
box title optimization (#6986)
337213ac9 is described below
commit 337213ac93bb42f597f9be945df540e2325be0e9
Author: Lizhen <[email protected]>
AuthorDate: Wed Dec 21 10:10:53 2022 +0800
[INLONG-6982][Dashboard] Data source and data storage bullet box title
optimization (#6986)
---
inlong-dashboard/src/locales/cn.json | 2 ++
inlong-dashboard/src/locales/en.json | 2 ++
inlong-dashboard/src/pages/GroupDetail/DataSources/DetailModal.tsx | 7 ++++++-
inlong-dashboard/src/pages/GroupDetail/DataStorage/DetailModal.tsx | 2 +-
4 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/inlong-dashboard/src/locales/cn.json
b/inlong-dashboard/src/locales/cn.json
index ebe11ada6..89c6256c9 100644
--- a/inlong-dashboard/src/locales/cn.json
+++ b/inlong-dashboard/src/locales/cn.json
@@ -464,6 +464,7 @@
"pages.GroupDetail.Sources.DeleteSuccessfully": "删除成功",
"pages.GroupDetail.Sources.DataStreams": "数据流",
"pages.GroupDetail.Sources.Create": "新建数据源",
+ "pages.GroupDetail.Sources.Edit": "编辑数据源",
"pages.GroupDetail.Sources.status.Disable": "失效",
"pages.GroupDetail.Sources.status.Normal": "正常",
"pages.GroupDetail.Sources.status.Failure": "失败",
@@ -480,6 +481,7 @@
"pages.GroupDetail.Sources.status.BeenFrozen": "已下发停止",
"pages.GroupDetail.Sources.status.BeenActive": "已下发重启",
"pages.GroupDetail.Sink.New": "新建流向配置",
+ "pages.GroupDetail.Sink.Edit": "编辑流向配置",
"pages.GroupDetail.Sink.Type": "类型",
"pages.GroupDetail.Sink.DataStreams": "数据流",
"pages.GroupDetail.Sink.Status.New": "新建",
diff --git a/inlong-dashboard/src/locales/en.json
b/inlong-dashboard/src/locales/en.json
index 06020ce3e..73594640e 100644
--- a/inlong-dashboard/src/locales/en.json
+++ b/inlong-dashboard/src/locales/en.json
@@ -461,6 +461,7 @@
"pages.GroupDetail.Sources.DeleteSuccessfully": "Delete successfully",
"pages.GroupDetail.Sources.DataStreams": "DataStreams",
"pages.GroupDetail.Sources.Create": "Create",
+ "pages.GroupDetail.Sources.Edit": "Edit",
"pages.GroupDetail.Sources.status.Disable": "Disable",
"pages.GroupDetail.Sources.status.Normal": "Normal",
"pages.GroupDetail.Sources.status.Failure": "Failure",
@@ -477,6 +478,7 @@
"pages.GroupDetail.Sources.status.BeenFrozen": "BeenStop",
"pages.GroupDetail.Sources.status.BeenActive": "BeenRestart",
"pages.GroupDetail.Sink.New": "Create",
+ "pages.GroupDetail.Sink.Edit": "Edit",
"pages.GroupDetail.Sink.Type": "Type",
"pages.GroupDetail.Sink.DataStreams": "DataStreams",
"pages.GroupDetail.Sink.Status.New": "New",
diff --git a/inlong-dashboard/src/pages/GroupDetail/DataSources/DetailModal.tsx
b/inlong-dashboard/src/pages/GroupDetail/DataSources/DetailModal.tsx
index 1ba545076..6d346883b 100644
--- a/inlong-dashboard/src/pages/GroupDetail/DataSources/DetailModal.tsx
+++ b/inlong-dashboard/src/pages/GroupDetail/DataSources/DetailModal.tsx
@@ -97,7 +97,12 @@ const Comp: React.FC<Props> = ({ id, inlongGroupId,
defaultType, ...modalProps }
return (
<>
- <Modal {...modalProps} title="Source" width={666} onOk={onOk}>
+ <Modal
+ {...modalProps}
+ title={id ? t('pages.GroupDetail.Sources.Edit') :
t('pages.GroupDetail.Sources.Create')}
+ width={666}
+ onOk={onOk}
+ >
<FormGenerator
content={formContent}
onValuesChange={(c, values) => setType(values.sourceType)}
diff --git a/inlong-dashboard/src/pages/GroupDetail/DataStorage/DetailModal.tsx
b/inlong-dashboard/src/pages/GroupDetail/DataStorage/DetailModal.tsx
index 4da3893a9..540889a87 100644
--- a/inlong-dashboard/src/pages/GroupDetail/DataStorage/DetailModal.tsx
+++ b/inlong-dashboard/src/pages/GroupDetail/DataStorage/DetailModal.tsx
@@ -155,7 +155,7 @@ const Comp: React.FC<DetailModalProps> = ({ inlongGroupId,
defaultType, id, ...m
return (
<Modal
- title="Sink"
+ title={id ? t('pages.GroupDetail.Sink.Edit') :
t('pages.GroupDetail.Sink.New')}
width={1200}
{...modalProps}
footer={[