- merged with master;
This commit is contained in:
@@ -23,7 +23,11 @@ import set404FromErrorResponse from '../../helpers/set404FromErrorResponse';
|
|||||||
|
|
||||||
// api
|
// api
|
||||||
import FormsService from '../../service/forms-service';
|
import FormsService from '../../service/forms-service';
|
||||||
|
import set404FromErrorResponse from '../../helpers/set404FromErrorResponse';
|
||||||
import BandoService from '../../service/bando-service';
|
import BandoService from '../../service/bando-service';
|
||||||
|
|
||||||
|
// TODO temp data
|
||||||
|
import { elementItems } from '../../tempData';
|
||||||
import DocumentCategoryService from '../../service/document-category-service';
|
import DocumentCategoryService from '../../service/document-category-service';
|
||||||
|
|
||||||
// TODO temp data
|
// TODO temp data
|
||||||
@@ -114,6 +118,8 @@ const BandoFormsEdit = () => {
|
|||||||
const formCreateCallback = (data, shouldRedirect) => {
|
const formCreateCallback = (data, shouldRedirect) => {
|
||||||
if (data.status === 'SUCCESS') {
|
if (data.status === 'SUCCESS') {
|
||||||
const bandoId = getBandoId();
|
const bandoId = getBandoId();
|
||||||
|
storeSet('unsetAsyncRequest');
|
||||||
|
|
||||||
if (shouldRedirect) {
|
if (shouldRedirect) {
|
||||||
navigate(`/bandi/${bandoId}/forms/${data.data.id}/preview`);
|
navigate(`/bandi/${bandoId}/forms/${data.data.id}/preview`);
|
||||||
return;
|
return;
|
||||||
@@ -129,7 +135,6 @@ const BandoFormsEdit = () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
storeSet('unsetAsyncRequest');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const errFormCreateCallback = (data) => {
|
const errFormCreateCallback = (data) => {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import { Dialog } from 'primereact/dialog';
|
|||||||
import { InputTextarea } from 'primereact/inputtextarea';
|
import { InputTextarea } from 'primereact/inputtextarea';
|
||||||
import { Dropdown } from 'primereact/dropdown';
|
import { Dropdown } from 'primereact/dropdown';
|
||||||
import { classNames } from 'primereact/utils';
|
import { classNames } from 'primereact/utils';
|
||||||
import { InputSwitch } from 'primereact/inputswitch';
|
//import { InputSwitch } from 'primereact/inputswitch';
|
||||||
import { InputText } from 'primereact/inputtext';
|
import { InputText } from 'primereact/inputtext';
|
||||||
import { Toast } from 'primereact/toast';
|
import { Toast } from 'primereact/toast';
|
||||||
|
|
||||||
@@ -180,14 +180,14 @@ const ArchiveDocument = ({
|
|||||||
onChange={(e) => setValue('idClassificazione', e.value)}
|
onChange={(e) => setValue('idClassificazione', e.value)}
|
||||||
options={categories}/>
|
options={categories}/>
|
||||||
</div>
|
</div>
|
||||||
<div className="appForm__field">
|
{/*<div className="appForm__field">
|
||||||
<label>
|
<label>
|
||||||
{__('Da firmare?', 'gepafin')}
|
{__('Da firmare?', 'gepafin')}
|
||||||
</label>
|
</label>
|
||||||
<InputSwitch
|
<InputSwitch
|
||||||
checked={modalData.flagDaFirmare}
|
checked={modalData.flagDaFirmare}
|
||||||
onChange={(e) => setValue('flagDaFirmare', e.value)}/>
|
onChange={(e) => setValue('flagDaFirmare', e.value)}/>
|
||||||
</div>
|
</div>*/}
|
||||||
<div className="appForm__field">
|
<div className="appForm__field">
|
||||||
<label className={classNames({ 'p-error': isEmpty(modalData.descrizione) })}>
|
<label className={classNames({ 'p-error': isEmpty(modalData.descrizione) })}>
|
||||||
{__('Descrizione', 'gepafin')}*
|
{__('Descrizione', 'gepafin')}*
|
||||||
|
|||||||
Reference in New Issue
Block a user