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 ecdb851f3 [INLONG-7009][Dashboard] The data node type supports
lowercase (#7010)
ecdb851f3 is described below
commit ecdb851f37576e3da321aef2e83c55b3188bd4d9
Author: Lizhen <[email protected]>
AuthorDate: Thu Dec 22 09:42:27 2022 +0800
[INLONG-7009][Dashboard] The data node type supports lowercase (#7010)
---
inlong-dashboard/src/metas/nodes/common/NodeDefaultInfo.ts | 4 +++-
inlong-dashboard/src/metas/nodes/defaults/index.ts | 2 +-
inlong-dashboard/src/pages/ConsumeDashboard/index.tsx | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/inlong-dashboard/src/metas/nodes/common/NodeDefaultInfo.ts
b/inlong-dashboard/src/metas/nodes/common/NodeDefaultInfo.ts
index 4aec5d6c5..cb8d13118 100644
--- a/inlong-dashboard/src/metas/nodes/common/NodeDefaultInfo.ts
+++ b/inlong-dashboard/src/metas/nodes/common/NodeDefaultInfo.ts
@@ -58,7 +58,9 @@ export class NodeDefaultInfo implements DataWithBackend,
RenderRow, RenderList {
})),
},
})
- @ColumnDecorator()
+ @ColumnDecorator({
+ render: type => nodes.find(c => c.value === type)?.label || type,
+ })
@I18n('meta.Nodes.Type')
type: string;
diff --git a/inlong-dashboard/src/metas/nodes/defaults/index.ts
b/inlong-dashboard/src/metas/nodes/defaults/index.ts
index cb455292e..29234be9a 100644
--- a/inlong-dashboard/src/metas/nodes/defaults/index.ts
+++ b/inlong-dashboard/src/metas/nodes/defaults/index.ts
@@ -27,7 +27,7 @@ export const allDefaultNodes:
MetaExportWithBackendList<NodeMetaType> = [
LoadEntity: () => import('../common/NodeInfo').then(r => ({ default:
r.NodeInfo })),
},
{
- label: 'Clickhouse',
+ label: 'ClickHouse',
value: 'CLICKHOUSE',
LoadEntity: () => import('./ClickHouse'),
},
diff --git a/inlong-dashboard/src/pages/ConsumeDashboard/index.tsx
b/inlong-dashboard/src/pages/ConsumeDashboard/index.tsx
index d47c55678..fd7321532 100644
--- a/inlong-dashboard/src/pages/ConsumeDashboard/index.tsx
+++ b/inlong-dashboard/src/pages/ConsumeDashboard/index.tsx
@@ -110,7 +110,7 @@ const Comp: React.FC = () => {
<HighTable
suffix={
<Button type="primary" onClick={() =>
history.push('/consume/create')}>
- {t('pages.ConsumeDashboard.NewConsume')}
+ {t('pages.ConsumeCreate.NewSubscribe')}
</Button>
}
filterForm={{