Make some call fields editable after publishing the call

- call form fields are editable (according to the list of keys);
- some parts of the form are editable;
This commit is contained in:
Vitalii Kiiko
2024-11-14 14:27:19 +01:00
parent 74647cc2fd
commit b08e2d46c0
15 changed files with 55 additions and 48 deletions

View File

@@ -5,14 +5,16 @@ import { isNil } from 'ramda';
// components
import { Button } from 'primereact/button';
const BandoEditFormActions = ({ id, openPreview, openPreviewEvaluation, submitFn }) => {
const BandoEditFormActions = ({ id, openPreview, openPreviewEvaluation, submitFn, status }) => {
return (
<div className="appPageSection">
<div className="appPageSection__actions">
<Button
type="button"
onClick={submitFn}
label={__('Salva bozza', 'gepafin')} icon="pi pi-save" iconPos="right"/>
label={status === 'PUBLISH'
? __('Modifica', 'gepafin')
: __('Salva bozza', 'gepafin')} icon="pi pi-save" iconPos="right"/>
<Button
type="button"
disabled={isNil(id)}