File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
dialogs/contingency-list/edition/criteria-based Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ import CriteriaBasedEditionForm from './criteria-based-edition-form';
28
28
import { useDispatch , useSelector } from 'react-redux' ;
29
29
import { noSelectionForCopy } from 'utils/constants' ;
30
30
import { setSelectionForCopy } from '../../../../../redux/actions' ;
31
+ import { useParameterState } from '../../../parameters-dialog' ;
32
+ import { PARAM_LANGUAGE } from '../../../../../utils/config-params' ;
31
33
32
34
const schema = yup . object ( ) . shape ( {
33
35
[ FieldConstants . NAME ] : yup . string ( ) . trim ( ) . required ( 'nameEmpty' ) ,
@@ -46,6 +48,7 @@ const CriteriaBasedEditionDialog = ({
46
48
name,
47
49
broadcastChannel,
48
50
} ) => {
51
+ const [ languageLocal ] = useParameterState ( PARAM_LANGUAGE ) ;
49
52
const [ isFetching , setIsFetching ] = useState ( ! ! contingencyListId ) ;
50
53
const { snackError } = useSnackMessage ( ) ;
51
54
const selectionForCopy = useSelector ( ( state ) => state . selectionForCopy ) ;
@@ -130,6 +133,7 @@ const CriteriaBasedEditionDialog = ({
130
133
removeOptional = { true }
131
134
disabledSave = { ! ! nameError || isValidating }
132
135
isDataFetching = { isFetching }
136
+ language = { languageLocal }
133
137
>
134
138
{ ! isFetching && < CriteriaBasedEditionForm /> }
135
139
</ CustomMuiDialog >
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import {
40
40
getFilterById ,
41
41
fetchDirectoryContent ,
42
42
fetchRootFolders ,
43
+ updateElement ,
43
44
} from '../utils/rest-api' ;
44
45
45
46
import ContentContextualMenu from './menus/content-contextual-menu' ;
@@ -1000,6 +1001,7 @@ const DirectoryContent = () => {
1000
1001
setActiveElement ( null ) ;
1001
1002
setOpenDescModificationDialog ( false ) ;
1002
1003
} }
1004
+ updateElement = { updateElement }
1003
1005
/>
1004
1006
) ;
1005
1007
}
You can’t perform that action at this time.
0 commit comments