- commented out importing static config;
This commit is contained in:
@@ -192,7 +192,8 @@ const BandoFormsEdit = () => {
|
||||
defaultFocus: 'reject',
|
||||
acceptClassName: 'p-button-danger',
|
||||
accept: doDelete,
|
||||
reject: () => {}
|
||||
reject: () => {
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -254,7 +255,7 @@ const BandoFormsEdit = () => {
|
||||
if (data.status === 'SUCCESS') {
|
||||
setBandoStatus(data.data.status);
|
||||
const criteria = pathOr([], ['data', 'criteria'], data);
|
||||
const criteriaOptions = criteria.map(o => ({value: o.id, label: o.value}));
|
||||
const criteriaOptions = criteria.map(o => ({ value: o.id, label: o.value }));
|
||||
storeSet('bandoCriteria', criteriaOptions);
|
||||
}
|
||||
}
|
||||
@@ -265,7 +266,7 @@ const BandoFormsEdit = () => {
|
||||
|
||||
const getCategories = (resp) => {
|
||||
if (resp.status === 'SUCCESS') {
|
||||
storeSet('documentCategories', resp.data.map(o => ({value: o.id, label: o.description})));
|
||||
storeSet('documentCategories', resp.data.map(o => ({ value: o.id, label: o.description })));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -324,7 +325,7 @@ const BandoFormsEdit = () => {
|
||||
accept={acceptModification}
|
||||
acceptLabel={__('Si', 'gepafin')}
|
||||
reject={rejectModification}
|
||||
style={{ maxWidth: '500px' }} />
|
||||
style={{ maxWidth: '500px' }}/>
|
||||
|
||||
<div className="appForm__field">
|
||||
<label htmlFor="label">{__('Assegna un nome a questo form', 'gepafin')}*</label>
|
||||
@@ -346,7 +347,7 @@ const BandoFormsEdit = () => {
|
||||
|
||||
<div className="appPage__spacer"></div>
|
||||
|
||||
<Toast ref={toast} />
|
||||
<Toast ref={toast}/>
|
||||
<div className="appPageSection">
|
||||
<div className="appPageSection__actions">
|
||||
<Button
|
||||
@@ -368,7 +369,7 @@ const BandoFormsEdit = () => {
|
||||
label={__('Pubblica', 'gepafin')}/>*/}
|
||||
</div>
|
||||
<div className="appPageSection__actions">
|
||||
<ConfirmPopup />
|
||||
<ConfirmPopup/>
|
||||
<Button
|
||||
onClick={confirmDelete}
|
||||
disabled={isAsyncRequest || 'PUBLISH' === bandoStatus}
|
||||
|
||||
Reference in New Issue
Block a user