diff --git a/src/pages/DomandaEditInstructorManager/index.js b/src/pages/DomandaEditInstructorManager/index.js
index 8630694..0f4202f 100644
--- a/src/pages/DomandaEditInstructorManager/index.js
+++ b/src/pages/DomandaEditInstructorManager/index.js
@@ -1436,48 +1436,55 @@ const DomandaEditInstructorManager = () => {
{data.evaluationVersion === 'V2'
?
-
{__('Contratto', 'gepafin')}
- {data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
- ?
- {data.contract?.beneficiaryDocuments.map(o => -
-
-
{renderHtmlContent(o.name)}
-
-
+
+ )}
+
+ :
{__('Nessun documento firmato', 'gepafin')}
}
+ > : null}
{__('Domanda PDF firmato', 'gepafin')}
{data.signedDocument && !isEmpty(data.signedDocument)
?
@@ -1618,48 +1625,55 @@ const DomandaEditInstructorManager = () => {
-
{__('Contratto', 'gepafin')}
- {data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
- ?
- {data.contract?.beneficiaryDocuments.map(o => -
-
-
{renderHtmlContent(o.name)}
-
-
{
- window.open(o.fileDetail[0].filePath, '_blank').focus()
- }}
- outlined severity="info"
- aria-label={__('Mostra', 'gepafin')}/>
- {
- setData((prev) => {
- const newDocuments = data.contract.beneficiaryDocuments
- .map(ob => {
- return ob.id === o.id
- ? {...o, documentAttachmentId: attachId}
- : o;
- });
- return {
- ...prev,
- contract: {
- ...prev.contract,
- beneficiaryDocuments: newDocuments
- }
- }
- });
- }}
- isSignedDocument={true}
- docAttachmentId={o.documentAttachmentId}/>
-
-
- )}
-
- :
{__('Nessun documento firmato', 'gepafin')}
}
+ {APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE'
+ ? <>
+
{__('Contratto', 'gepafin')}
+ {data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
+ ?
+ {data.contract?.beneficiaryDocuments.map(o => -
+
+
{renderHtmlContent(o.name)}
+
+
{
+ window.open(o.fileDetail[0].filePath, '_blank').focus()
+ }}
+ outlined severity="info"
+ aria-label={__('Mostra', 'gepafin')}/>
+ {
+ setData((prev) => {
+ const newDocuments = data.contract.beneficiaryDocuments
+ .map(ob => {
+ return ob.id === o.id
+ ? {
+ ...o,
+ documentAttachmentId: attachId
+ }
+ : o;
+ });
+ return {
+ ...prev,
+ contract: {
+ ...prev.contract,
+ beneficiaryDocuments: newDocuments
+ }
+ }
+ });
+ }}
+ isSignedDocument={true}
+ docAttachmentId={o.documentAttachmentId}/>
+
+
+ )}
+
+ :
{__('Nessun documento firmato', 'gepafin')}
}
+ > : null}
{__('Domanda PDF firmato', 'gepafin')}
{data.signedDocument && !isEmpty(data.signedDocument)
?
diff --git a/src/pages/DomandaEditPreInstructor/index.js b/src/pages/DomandaEditPreInstructor/index.js
index ceb7269..67cdc46 100644
--- a/src/pages/DomandaEditPreInstructor/index.js
+++ b/src/pages/DomandaEditPreInstructor/index.js
@@ -1436,48 +1436,55 @@ const DomandaEditPreInstructor = () => {
{data.evaluationVersion === 'V2'
?
-
{__('Contratto', 'gepafin')}
- {data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
- ?
- {data.contract?.beneficiaryDocuments.map(o => -
-
-
{renderHtmlContent(o.name)}
-
-
{
- window.open(o.fileDetail[0].filePath, '_blank').focus()
- }}
- outlined severity="info"
- aria-label={__('Mostra', 'gepafin')}/>
- {
- setData((prev) => {
- const newDocuments = data.contract.beneficiaryDocuments
- .map(ob => {
- return ob.id === o.id
- ? {...o, documentAttachmentId: attachId}
- : o;
+ {APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE'
+ ? <>
+ {__('Contratto', 'gepafin')}
+ {data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
+ ?
+ {data.contract?.beneficiaryDocuments.map(o => -
+
+
{renderHtmlContent(o.name)}
+
+
{
+ window.open(o.fileDetail[0].filePath, '_blank').focus()
+ }}
+ outlined severity="info"
+ aria-label={__('Mostra', 'gepafin')}/>
+ {
+ setData((prev) => {
+ const newDocuments = data.contract.beneficiaryDocuments
+ .map(ob => {
+ return ob.id === o.id
+ ? {
+ ...o,
+ documentAttachmentId: attachId
+ }
+ : o;
+ });
+ return {
+ ...prev,
+ contract: {
+ ...prev.contract,
+ beneficiaryDocuments: newDocuments
+ }
+ }
});
- return {
- ...prev,
- contract: {
- ...prev.contract,
- beneficiaryDocuments: newDocuments
- }
- }
- });
- }}
- isSignedDocument={true}
- docAttachmentId={o.documentAttachmentId}/>
-
-
- )}
-
- : {__('Nessun documento firmato', 'gepafin')}
}
+ }}
+ isSignedDocument={true}
+ docAttachmentId={o.documentAttachmentId}/>
+
+
+ )}
+
+ :
{__('Nessun documento firmato', 'gepafin')}
}
+ > : null}
{__('Domanda PDF firmato', 'gepafin')}
{data.signedDocument && !isEmpty(data.signedDocument)
?
@@ -1618,48 +1625,55 @@ const DomandaEditPreInstructor = () => {
-
{__('Contratto', 'gepafin')}
- {data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
- ?
- {data.contract?.beneficiaryDocuments.map(o => -
-
-
{renderHtmlContent(o.name)}
-
-
{
- window.open(o.fileDetail[0].filePath, '_blank').focus()
- }}
- outlined severity="info"
- aria-label={__('Mostra', 'gepafin')}/>
- {
- setData((prev) => {
- const newDocuments = data.contract.beneficiaryDocuments
- .map(ob => {
- return ob.id === o.id
- ? {...o, documentAttachmentId: attachId}
- : o;
- });
- return {
- ...prev,
- contract: {
- ...prev.contract,
- beneficiaryDocuments: newDocuments
- }
- }
- });
- }}
- isSignedDocument={true}
- docAttachmentId={o.documentAttachmentId}/>
-
-
- )}
-
- :
{__('Nessun documento firmato', 'gepafin')}
}
+ {APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE'
+ ? <>
+
{__('Contratto', 'gepafin')}
+ {data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
+ ?
+ {data.contract?.beneficiaryDocuments.map(o => -
+
+
{renderHtmlContent(o.name)}
+
+
{
+ window.open(o.fileDetail[0].filePath, '_blank').focus()
+ }}
+ outlined severity="info"
+ aria-label={__('Mostra', 'gepafin')}/>
+ {
+ setData((prev) => {
+ const newDocuments = data.contract.beneficiaryDocuments
+ .map(ob => {
+ return ob.id === o.id
+ ? {
+ ...o,
+ documentAttachmentId: attachId
+ }
+ : o;
+ });
+ return {
+ ...prev,
+ contract: {
+ ...prev.contract,
+ beneficiaryDocuments: newDocuments
+ }
+ }
+ });
+ }}
+ isSignedDocument={true}
+ docAttachmentId={o.documentAttachmentId}/>
+
+
+ )}
+
+ :
{__('Nessun documento firmato', 'gepafin')}
}
+ > : null}
{__('Domanda PDF firmato', 'gepafin')}
{data.signedDocument && !isEmpty(data.signedDocument)
?