File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
km-console/packages/layout-clusters-fe/src/pages/BrokerList Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import React from 'react';
33import { timeFormat , getSizeAndUnit } from '../../constants/common' ;
44import moment from 'moment' ;
55import { Tag , Tooltip } from 'knowdesign' ;
6+ import { IconFont } from '@knowdesign/icons' ;
67
78export const getBrokerListColumns = ( arg ?: any ) => {
89 const columns = [
@@ -82,6 +83,14 @@ export const getBrokerListColumns = (arg?: any) => {
8283 dataIndex : 'jmxPort' ,
8384 key : 'jmxPort' ,
8485 width : 100 ,
86+ render : ( t : string , r : any ) => {
87+ return (
88+ < span >
89+ < IconFont type = { r ?. jmxConnected ? 'icon-zhengchang' : 'icon-yichang' } />
90+ < span style = { { marginLeft : 4 } } > { t } </ span >
91+ </ span >
92+ ) ;
93+ } ,
8594 } ,
8695 {
8796 title : 'Partitions' ,
You can’t perform that action at this time.
0 commit comments