- saving progress;
This commit is contained in:
@@ -84,6 +84,10 @@ const RepeaterFields = ({
|
|||||||
updateCallbackFn(formData.items);
|
updateCallbackFn(formData.items);
|
||||||
}, [fields, chosen]);
|
}, [fields, chosen]);
|
||||||
|
|
||||||
|
const openCompanyArchive = () => {
|
||||||
|
console.log('openCompanyArchive');
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fieldsRepeater">
|
<div className="fieldsRepeater">
|
||||||
<form className="appForm" onSubmit={handleSubmit(onSubmit)}>
|
<form className="appForm" onSubmit={handleSubmit(onSubmit)}>
|
||||||
@@ -134,6 +138,7 @@ const RepeaterFields = ({
|
|||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</form>
|
</form>
|
||||||
|
<div style={{display: 'flex', gap: '10px'}}>
|
||||||
<Button
|
<Button
|
||||||
className="fieldsRepeater__addNew"
|
className="fieldsRepeater__addNew"
|
||||||
outlined
|
outlined
|
||||||
@@ -142,6 +147,15 @@ const RepeaterFields = ({
|
|||||||
onClick={addNew}
|
onClick={addNew}
|
||||||
label={__('Aggiungi nuovo file', 'gepafin')}
|
label={__('Aggiungi nuovo file', 'gepafin')}
|
||||||
/>
|
/>
|
||||||
|
<Button
|
||||||
|
className="fieldsRepeater__addNew"
|
||||||
|
outlined
|
||||||
|
type="button"
|
||||||
|
disabled={(watchFields && watchFields.filter(o => isEmpty(o.nameValue) || isEmpty(o.fileValue)).length > 0) || shouldDisable}
|
||||||
|
onClick={openCompanyArchive}
|
||||||
|
label={__('Documenti aziendale', 'gepafin')}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user