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 d1208cc745 [INLONG-9385][Dashboard] Create a new cluster and remove the agent and dataproxy types (#9387) d1208cc745 is described below commit d1208cc7453ace4d4b6e41f8b7bcfea81ed0e23c Author: Lizhen <88174078+bluew...@users.noreply.github.com> AuthorDate: Mon Dec 4 10:58:38 2023 +0800 [INLONG-9385][Dashboard] Create a new cluster and remove the agent and dataproxy types (#9387) --- .../src/plugins/clusters/common/ClusterDefaultInfo.ts | 2 +- inlong-dashboard/src/ui/pages/Clusters/index.tsx | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/inlong-dashboard/src/plugins/clusters/common/ClusterDefaultInfo.ts b/inlong-dashboard/src/plugins/clusters/common/ClusterDefaultInfo.ts index d42f570bcd..cb51484dd8 100644 --- a/inlong-dashboard/src/plugins/clusters/common/ClusterDefaultInfo.ts +++ b/inlong-dashboard/src/plugins/clusters/common/ClusterDefaultInfo.ts @@ -52,7 +52,7 @@ export class ClusterDefaultInfo implements DataWithBackend, RenderRow, RenderLis props: values => ({ disabled: Boolean(values.id), options: clusters - .filter(item => item.value) + .filter(item => item.value !== 'AGENT' && item.value !== 'DATAPROXY') .map(item => ({ label: item.label, value: item.value, diff --git a/inlong-dashboard/src/ui/pages/Clusters/index.tsx b/inlong-dashboard/src/ui/pages/Clusters/index.tsx index 61c1920cb0..300e943bf6 100644 --- a/inlong-dashboard/src/ui/pages/Clusters/index.tsx +++ b/inlong-dashboard/src/ui/pages/Clusters/index.tsx @@ -154,9 +154,11 @@ const Comp: React.FC = () => { {i18n.t('pages.Clusters.Node.Name')} </Link> )} - <Button type="link" onClick={() => onEdit(record)}> - {i18n.t('basic.Edit')} - </Button> + {record.type !== 'DATAPROXY' && record.type !== 'AGENT' && ( + <Button type="link" onClick={() => onEdit(record)}> + {i18n.t('basic.Edit')} + </Button> + )} <Button type="link" onClick={() => onDelete(record)}> {i18n.t('basic.Delete')} </Button>