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 671c3e01e8 [INLONG-9383][Dashboard] Resource details display cluster label information (#9399) 671c3e01e8 is described below commit 671c3e01e8ed4906b44bdbfd0d1b59ebce4b4a8a Author: Lizhen <88174078+bluew...@users.noreply.github.com> AuthorDate: Mon Dec 4 19:51:24 2023 +0800 [INLONG-9383][Dashboard] Resource details display cluster label information (#9399) --- .../src/ui/pages/GroupDetail/ResourceInfo/index.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/inlong-dashboard/src/ui/pages/GroupDetail/ResourceInfo/index.tsx b/inlong-dashboard/src/ui/pages/GroupDetail/ResourceInfo/index.tsx index faa6984c38..945dc3f1c4 100644 --- a/inlong-dashboard/src/ui/pages/GroupDetail/ResourceInfo/index.tsx +++ b/inlong-dashboard/src/ui/pages/GroupDetail/ResourceInfo/index.tsx @@ -79,7 +79,13 @@ const Comp = ({ inlongGroupId, isCreate }: Props, ref) => { const dividerInfo = data => { let info = []; for (const item in data) { - if (data[item] !== null && item !== 'SortInfo' && item !== 'PULSAR' && item !== 'TUBEMQ') { + if ( + data[item] !== null && + item !== 'SortInfo' && + item !== 'PULSAR' && + item !== 'TUBEMQ' && + item !== 'inlongClusterTag' + ) { info.push(item); } } @@ -88,10 +94,19 @@ const Comp = ({ inlongGroupId, isCreate }: Props, ref) => { return ( <div style={{ position: 'relative' }}> + {data?.hasOwnProperty('inlongClusterTag') && ( + <> + <Divider orientation="left">Cluster tag {t('pages.GroupDetail.Resource.Info')}</Divider> + <div> + <span>Cluster tag:</span> + <span style={{ marginLeft: 100 }}>{data?.inlongClusterTag}</span> + </div> + </> + )} {dividerInfo(data).map(item => { return ( <> - <Divider orientation="left"> + <Divider orientation="left" style={{ marginTop: 40 }}> {clusters.find(c => c.value === item)?.label || item}{' '} {t('pages.GroupDetail.Resource.Info')} </Divider>