This is an automated email from the ASF dual-hosted git repository.
aloyszhang 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 5324996a1e [INLONG-10614][Dashboard] The template list does not need
to display Id (#10616)
5324996a1e is described below
commit 5324996a1e7d050435faa6c37125228780afb941
Author: kamianlaida <[email protected]>
AuthorDate: Mon Jul 15 17:09:58 2024 +0800
[INLONG-10614][Dashboard] The template list does not need to display Id
(#10616)
---
inlong-dashboard/src/ui/pages/GroupDataTemplate/CreateModal.tsx | 2 +-
inlong-dashboard/src/ui/pages/GroupDataTemplate/index.tsx | 8 +-------
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/inlong-dashboard/src/ui/pages/GroupDataTemplate/CreateModal.tsx
b/inlong-dashboard/src/ui/pages/GroupDataTemplate/CreateModal.tsx
index 12b84c01bb..9836fb4601 100644
--- a/inlong-dashboard/src/ui/pages/GroupDataTemplate/CreateModal.tsx
+++ b/inlong-dashboard/src/ui/pages/GroupDataTemplate/CreateModal.tsx
@@ -96,7 +96,7 @@ const Comp: React.FC<Props> = ({ id, templateName,
...modalProps }) => {
const content = useMemo(() => {
return new GroupDataTemplateInfo().renderRow().map(item => {
if (item.name === 'tenantList') {
- item = { ...item, hidden: hidden };
+ item = { ...item, hidden: hidden, rules: [{ required: !hidden }] };
}
return item;
});
diff --git a/inlong-dashboard/src/ui/pages/GroupDataTemplate/index.tsx
b/inlong-dashboard/src/ui/pages/GroupDataTemplate/index.tsx
index 5e1928e43e..530fb6d565 100644
--- a/inlong-dashboard/src/ui/pages/GroupDataTemplate/index.tsx
+++ b/inlong-dashboard/src/ui/pages/GroupDataTemplate/index.tsx
@@ -103,12 +103,6 @@ const Comp: React.FC = () => {
);
const entityColumns = useMemo(() => {
return [
- {
- title: 'id',
- dataIndex: 'id',
- key: 'id',
- width: 100,
- },
{
title: i18n.t('pages.GroupDataTemplate.Name'),
dataIndex: 'name',
@@ -119,7 +113,7 @@ const Comp: React.FC = () => {
title: i18n.t('pages.GroupDataTemplate.InCharges'),
dataIndex: 'inCharges',
key: 'inCharges',
- width: 200,
+ width: 300,
},
{
title: i18n.t('pages.GroupDataTemplate.TenantList'),