diff --git a/km-console/packages/layout-clusters-fe/src/pages/BrokerList/config.tsx b/km-console/packages/layout-clusters-fe/src/pages/BrokerList/config.tsx index b683500d..a0f6cbe5 100644 --- a/km-console/packages/layout-clusters-fe/src/pages/BrokerList/config.tsx +++ b/km-console/packages/layout-clusters-fe/src/pages/BrokerList/config.tsx @@ -14,19 +14,49 @@ export const getBrokerListColumns = (arg?: any) => { // eslint-disable-next-line react/display-name render: (t: number, r: any) => { return r?.alive ? ( - { - window.location.hash = `brokerId=${t || t === 0 ? t : ''}&host=${r.host || ''}`; - }} - > - {t} - + <> + { + window.location.hash = `brokerId=${t || t === 0 ? t : ''}&host=${r.host || ''}`; + }} + > + {t} + + {r?.kafkaRoleList?.includes('controller') && ( + + Controller + + )} + ) : ( - {t} + <> + {t} + {r?.kafkaRoleList?.includes('controller') && ( + + Controller + + )} + ); }, fixed: 'left', - width: 120, + width: 150, }, // { // title: 'Rack',