add multiple application in beneficiario

This commit is contained in:
Noemi
2025-07-03 14:36:16 +02:00
parent b354ec7145
commit 0227c30a73
3 changed files with 18 additions and 9 deletions

View File

@@ -216,7 +216,7 @@ const AllBandiAccordion = ({ showOnlyPreferred = false }) => {
{isCallExpired || isCallScheduled || (!isEmpty(chosenCompanyId) && chosenCompanyId !== 0 && data.confidi
&& (data.id !== 6 || (data.id === 6 && REACT_APP_HUB_ID !== 'p4lk3bcx1RStqTaIVVbXs')))
? <Button onClick={() => goToBandoPage(data.id)} severity="info">
{__('Mostra', 'gepafin')}
{data.allowMultipleApplications ? __('Partecipa', 'gepafin') : __('Mostra', 'gepafin')}
</Button> : null}
</div>
);

View File

@@ -277,7 +277,7 @@ const BandoEditFormStep1 = forwardRef(function ({ initialData, setInitialData, g
<FormField
type="switch"
disabled={shouldDisableField('confidi')}
fieldName="confidi"
fieldName="allowMultipleApplications"
label={__('Applicazione multipla', 'gepafin')}
control={control}
errors={errors}

View File

@@ -97,6 +97,9 @@ const BandoViewBeneficiario = () => {
const submitBtnLabel = () => {
if (REACT_APP_HUB_ID === 't7jh5wfg9QXylNaTZkPoE') {
return __('Presenta domanda', 'gepafin');
} else {
if(data.allowMultipleApplications){
return __('Presenta domanda', 'gepafin');
} else {
if (applicationObj && applicationObj.id) {
return __('Vai alla domanda', 'gepafin');
@@ -104,11 +107,16 @@ const BandoViewBeneficiario = () => {
return __('Presenta domanda', 'gepafin');
}
}
}
}
const submitBtnIcon = () => {
if (REACT_APP_HUB_ID === 't7jh5wfg9QXylNaTZkPoE') {
return 'pi pi-save';
} else {
if(data.allowMultipleApplications){
return 'pi pi-save';
} else {
if (applicationObj && applicationObj.id) {
return 'pi pi-arrow-right';
@@ -117,6 +125,7 @@ const BandoViewBeneficiario = () => {
}
}
}
}
const submitApplication = () => {
const role = storeGet('getRole');