File tree 1 file changed +12
-9
lines changed
src/components/TooltipsContent/NodeEndpointsTooltipContent
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -21,26 +21,29 @@ 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 ) {
24
+
25
+ if ( data ?. Roles ?. length ) {
25
26
info . push ( {
26
- name : i18n ( 'field_host' ) ,
27
- children : data . Host ,
28
- copyText : data . Host ,
29
- key : 'Host' ,
27
+ name : i18n ( 'field_roles' ) ,
28
+ children : data . Roles . join ( ', ' ) ,
29
+ key : 'Roles' ,
30
30
} ) ;
31
31
}
32
+
32
33
if ( data ?. Tenants ?. [ 0 ] ) {
33
34
info . push ( {
34
35
name : i18n ( 'field_database' ) ,
35
36
children : data . Tenants [ 0 ] ,
36
37
key : 'Database' ,
37
38
} ) ;
38
39
}
39
- if ( data ?. Roles ?. length ) {
40
+
41
+ if ( data ?. Host ) {
40
42
info . push ( {
41
- name : i18n ( 'field_roles' ) ,
42
- children : data . Roles . join ( ', ' ) ,
43
- key : 'Roles' ,
43
+ name : i18n ( 'field_host' ) ,
44
+ children : data . Host ,
45
+ copyText : data . Host ,
46
+ key : 'Host' ,
44
47
} ) ;
45
48
}
46
49
You can’t perform that action at this time.
0 commit comments