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