@@ -21,6 +21,28 @@ interface NodeEdpointsTooltipProps {
21
21
export const NodeEndpointsTooltipContent = ( { data, nodeHref} : NodeEdpointsTooltipProps ) => {
22
22
const isUserAllowedToMakeChanges = useTypedSelector ( selectIsUserAllowedToMakeChanges ) ;
23
23
const info : ( DefinitionListItemProps & { key : string } ) [ ] = [ ] ;
24
+ if ( data ?. Host ) {
25
+ info . push ( {
26
+ name : i18n ( 'field_host' ) ,
27
+ children : data . Host ,
28
+ copyText : data . Host ,
29
+ key : 'Host' ,
30
+ } ) ;
31
+ }
32
+ if ( data ?. Tenants ?. [ 0 ] ) {
33
+ info . push ( {
34
+ name : i18n ( 'field_database' ) ,
35
+ children : data . Tenants [ 0 ] ,
36
+ key : 'Database' ,
37
+ } ) ;
38
+ }
39
+ if ( data ?. Roles ?. length ) {
40
+ info . push ( {
41
+ name : i18n ( 'field_roles' ) ,
42
+ children : data . Roles . join ( ', ' ) ,
43
+ key : 'Roles' ,
44
+ } ) ;
45
+ }
24
46
25
47
if ( data ?. Rack ) {
26
48
info . push ( { name : i18n ( 'field_rack' ) , children : data . Rack , key : 'Rack' } ) ;
@@ -33,14 +55,6 @@ export const NodeEndpointsTooltipContent = ({data, nodeHref}: NodeEdpointsToolti
33
55
}
34
56
} ) ;
35
57
}
36
- if ( data ?. Host ) {
37
- info . push ( {
38
- name : i18n ( 'field_host' ) ,
39
- children : data . Host ,
40
- copyText : data . Host ,
41
- key : 'Host' ,
42
- } ) ;
43
- }
44
58
45
59
if ( isUserAllowedToMakeChanges && nodeHref ) {
46
60
info . push ( {
@@ -56,7 +70,7 @@ export const NodeEndpointsTooltipContent = ({data, nodeHref}: NodeEdpointsToolti
56
70
{ info . map ( ( { children, key, ...rest } ) => {
57
71
return (
58
72
< DefinitionList . Item key = { key } { ...rest } >
59
- < span className = { b ( 'definition' ) } > { children } </ span >
73
+ < div className = { b ( 'definition' ) } > { children } </ div >
60
74
</ DefinitionList . Item >
61
75
) ;
62
76
} ) }
0 commit comments