You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by do...@apache.org on 2022/08/04 08:50:27 UTC
[inlong] branch master updated: [INLONG-5355][Dashboard] SinkType config error. (#5356)
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 ef94267c0 [INLONG-5355][Dashboard] SinkType config error. (#5356)
ef94267c0 is described below
commit ef94267c0cf7d0f098d939ed32bc2b47d6b703ca
Author: Daniel <le...@outlook.com>
AuthorDate: Thu Aug 4 16:50:21 2022 +0800
[INLONG-5355][Dashboard] SinkType config error. (#5356)
---
.../AccessHelper/DataStorageEditor/DetailModal.tsx | 2 +-
inlong-dashboard/src/components/MetaData/index.ts | 24 +++++++++++-----------
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/inlong-dashboard/src/components/AccessHelper/DataStorageEditor/DetailModal.tsx b/inlong-dashboard/src/components/AccessHelper/DataStorageEditor/DetailModal.tsx
index 9bdff00d5..69a42e4ba 100644
--- a/inlong-dashboard/src/components/AccessHelper/DataStorageEditor/DetailModal.tsx
+++ b/inlong-dashboard/src/components/AccessHelper/DataStorageEditor/DetailModal.tsx
@@ -226,7 +226,7 @@ const Comp: React.FC<DetailModalProps> = ({
};
return (
- <Modal title={sinkType} width={1200} {...modalProps} onOk={onOk}>
+ <Modal title={StoragesMap[sinkType]?.label} width={1200} {...modalProps} onOk={onOk}>
<FormGenerator
name={name}
labelCol={{ span: 4 }}
diff --git a/inlong-dashboard/src/components/MetaData/index.ts b/inlong-dashboard/src/components/MetaData/index.ts
index e54ed5d95..0fc5cc8a0 100644
--- a/inlong-dashboard/src/components/MetaData/index.ts
+++ b/inlong-dashboard/src/components/MetaData/index.ts
@@ -50,62 +50,62 @@ export interface StoragesType {
export const Storages: StoragesType[] = [
{
label: 'Hive',
- value: 'Hive',
+ value: 'HIVE',
...StorageHive,
},
{
label: 'Iceberg',
- value: 'Iceberg',
+ value: 'ICEBERG',
...StorageIceberg,
},
{
label: 'ClickHouse',
- value: 'ClickHouse',
+ value: 'CLICKHOUSE',
...StorageClickhouse,
},
{
label: 'Kafka',
- value: 'Kafka',
+ value: 'KAFKA',
...StorageKafka,
},
{
label: 'Elasticsearch',
- value: 'Elasticsearch',
+ value: 'ELASTICSEARCH',
...StorageEs,
},
{
label: 'Greenplum',
- value: 'Greenplum',
+ value: 'GREENPLUM',
...StorageGreenplum,
},
{
label: 'HBase',
- value: 'HBase',
+ value: 'HBASE',
...StorageHBase,
},
{
label: 'MySQL',
- value: 'MySQL',
+ value: 'MYSQL',
...StorageMySQL,
},
{
label: 'Oracle',
- value: 'Oracle',
+ value: 'ORACLE',
...StorageOracle,
},
{
label: 'PostgreSQL',
- value: 'PostgreSQL',
+ value: 'POSTGRES',
...StoragePostgreSQL,
},
{
label: 'SQLServer',
- value: 'SQLServer',
+ value: 'SQLSERVER',
...StorageSQLServer,
},
{
label: 'TDSQLPostgreSQL',
- value: 'TDSQLPostgreSQL',
+ value: 'TDSQLPOSTGRESQL',
...StorageTDSQLPostgreSQL,
},
];