- issue 122
- issue 123;
This commit is contained in:
@@ -324,6 +324,7 @@ const BandoViewBeneficiario = () => {
|
||||
]);
|
||||
if (REACT_APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE') {
|
||||
storeSet.main.setAsyncRequest();
|
||||
setApplicationObj(true);
|
||||
ApplicationService.getApplications(getApplCallback, errGetApplCallback, [
|
||||
['callId', bandoId],
|
||||
['companyId', chosenCompanyId]
|
||||
@@ -339,6 +340,8 @@ const BandoViewBeneficiario = () => {
|
||||
}
|
||||
}, [data]);
|
||||
|
||||
console.log('applicationObj', applicationObj)
|
||||
|
||||
return (
|
||||
<div className="appPage">
|
||||
{!isAsyncRequest && !isEmpty(data)
|
||||
@@ -524,12 +527,14 @@ const BandoViewBeneficiario = () => {
|
||||
onClick={scaricaModulistica}
|
||||
label={__('Scarica Bando Completo e Modulistica', 'gepafin')}
|
||||
icon="pi pi-download" iconPos="right"/>
|
||||
<Button
|
||||
type="button"
|
||||
disabled={isExpired || isAsyncRequest || chosenCompanyId === 0}
|
||||
onClick={submitApplication}
|
||||
label={submitBtnLabel()}
|
||||
icon={submitBtnIcon()} iconPos="right"/>
|
||||
{applicationObj.status && applicationObj.status === 'APPROVED'
|
||||
? null
|
||||
: <Button
|
||||
type="button"
|
||||
disabled={isExpired || isAsyncRequest || chosenCompanyId === 0}
|
||||
onClick={submitApplication}
|
||||
label={submitBtnLabel()}
|
||||
icon={submitBtnIcon()} iconPos="right"/>}
|
||||
<Button
|
||||
type="button"
|
||||
disabled={isExpired}
|
||||
|
||||
Reference in New Issue
Block a user