File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/components/dialogs/network-modification/composite-modification Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,12 @@ export default function CompositeModificationDialog({
71
71
resolver : yupResolver ( schema ) ,
72
72
} ) ;
73
73
74
+ const {
75
+ formState : { errors } ,
76
+ } = methods ;
77
+ const nameError : any = errors [ FieldConstants . NAME ] ;
78
+ const isValidating = errors . root ?. isValidating ;
79
+
74
80
const { computeLabel } = useModificationLabelComputer ( ) ;
75
81
const getModificationLabel = ( modif : NetworkModificationMetadata ) => {
76
82
if ( ! modif ) {
@@ -147,6 +153,7 @@ export default function CompositeModificationDialog({
147
153
titleId = { titleId }
148
154
onSave = { onSubmit }
149
155
removeOptional
156
+ disabledSave = { ! ! nameError || ! ! isValidating }
150
157
isDataFetching = { isFetching }
151
158
language = { languageLocal }
152
159
formSchema = { schema }
You can’t perform that action at this time.
0 commit comments