Merge branch 'master' into develop
This commit is contained in:
@@ -215,7 +215,7 @@ const AllBandiAccordion = ({ showOnlyPreferred = false, isAntiMoneylaundry = fal
|
|||||||
{!isCallExpired && !isCallScheduled && !isEmpty(chosenCompanyId) && chosenCompanyId !== 0 && (!data.confidi
|
{!isCallExpired && !isCallScheduled && !isEmpty(chosenCompanyId) && chosenCompanyId !== 0 && (!data.confidi
|
||||||
|| (data.confidi && data.id === 6 && REACT_APP_HUB_ID === 'p4lk3bcx1RStqTaIVVbXs'))
|
|| (data.confidi && data.id === 6 && REACT_APP_HUB_ID === 'p4lk3bcx1RStqTaIVVbXs'))
|
||||||
? <Button onClick={() => goToBandoPage(data.id)} severity="info">
|
? <Button onClick={() => goToBandoPage(data.id)} severity="info">
|
||||||
{__('Partecipa', 'gepafin')}
|
{isAntiMoneylaundry ? __('Compila', 'gepafin') : __('Partecipa', 'gepafin')}
|
||||||
</Button> : null}
|
</Button> : null}
|
||||||
{isCallExpired
|
{isCallExpired
|
||||||
? <p><Badge value={__('È scaduto', 'gepafin')} severity="danger"></Badge></p> : null}
|
? <p><Badge value={__('È scaduto', 'gepafin')} severity="danger"></Badge></p> : null}
|
||||||
@@ -224,7 +224,9 @@ const AllBandiAccordion = ({ showOnlyPreferred = false, isAntiMoneylaundry = fal
|
|||||||
{isCallExpired || isCallScheduled || (!isEmpty(chosenCompanyId) && chosenCompanyId !== 0 && data.confidi
|
{isCallExpired || isCallScheduled || (!isEmpty(chosenCompanyId) && chosenCompanyId !== 0 && data.confidi
|
||||||
&& (data.id !== 6 || (data.id === 6 && REACT_APP_HUB_ID !== 'p4lk3bcx1RStqTaIVVbXs')))
|
&& (data.id !== 6 || (data.id === 6 && REACT_APP_HUB_ID !== 'p4lk3bcx1RStqTaIVVbXs')))
|
||||||
? <Button onClick={() => goToBandoPage(data.id)} severity="info">
|
? <Button onClick={() => goToBandoPage(data.id)} severity="info">
|
||||||
{data.allowMultipleApplications ? __('Partecipa', 'gepafin') : __('Mostra', 'gepafin')}
|
{data.allowMultipleApplications
|
||||||
|
? isAntiMoneylaundry ? __('Compila', 'gepafin') : __('Partecipa', 'gepafin')
|
||||||
|
: __('Mostra', 'gepafin')}
|
||||||
</Button> : null}
|
</Button> : null}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -168,16 +168,7 @@ const EvaluationExtraFiles = ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const errGetDocsCallback = (resp) => {
|
const errGetDocsCallback = () => {}
|
||||||
if (toast.current && resp.message) {
|
|
||||||
toast.current.show({
|
|
||||||
severity: resp.status === 'SUCCESS' ? 'info' : 'error',
|
|
||||||
summary: '',
|
|
||||||
detail: resp.message
|
|
||||||
});
|
|
||||||
}
|
|
||||||
set404FromErrorResponse(resp);
|
|
||||||
}
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
CompanyService.getCompanyDocuments(companyId, getDocsCallback, errGetDocsCallback, [
|
CompanyService.getCompanyDocuments(companyId, getDocsCallback, errGetDocsCallback, [
|
||||||
|
|||||||
Reference in New Issue
Block a user