@@ -10,7 +10,14 @@ import { useIntl } from 'react-intl';
10
10
import { Cancel , CheckCircle , ManageAccounts , RadioButtonUnchecked } from '@mui/icons-material' ;
11
11
import { GridButton , GridButtonDelete , GridTable , GridTableRef } from '../../components/Grid' ;
12
12
import { UserAdminSrv , UserProfile } from '../../services' ;
13
- import { ColDef , GetRowIdParams , RowClickedEvent , SelectionChangedEvent , TextFilterParams } from 'ag-grid-community' ;
13
+ import {
14
+ ColDef ,
15
+ GetRowIdParams ,
16
+ ITooltipParams ,
17
+ RowClickedEvent ,
18
+ SelectionChangedEvent ,
19
+ TextFilterParams
20
+ } from 'ag-grid-community' ;
14
21
import { useSnackMessage } from '@gridsuite/commons-ui' ;
15
22
import DeleteConfirmationDialog from '../common/delete-confirmation-dialog' ;
16
23
import { defaultColDef , defaultRowSelection } from '../common/table-config' ;
@@ -92,6 +99,21 @@ const ProfilesTable: FunctionComponent<ProfilesTableProps> = (props) => {
92
99
return < Cancel fontSize = "small" color = "error" /> ;
93
100
}
94
101
} ,
102
+ tooltipValueGetter : ( p : ITooltipParams ) => {
103
+ if ( p . value == null ) {
104
+ return intl . formatMessage ( {
105
+ id : 'profiles.table.validity.tooltip.none' ,
106
+ } ) ;
107
+ } else if ( p . value ) {
108
+ return intl . formatMessage ( {
109
+ id : 'profiles.table.validity.tooltip.ok' ,
110
+ } ) ;
111
+ } else {
112
+ return intl . formatMessage ( {
113
+ id : 'profiles.table.validity.tooltip.ko' ,
114
+ } ) ;
115
+ }
116
+ } ,
95
117
flex : 1 ,
96
118
headerName : intl . formatMessage ( {
97
119
id : 'profiles.table.validity' ,
0 commit comments