Merge branch 'develop' into featue/84-ndg-appointment-flow

This commit is contained in:
Vitalii Kiiko
2024-12-09 09:04:48 +01:00

View File

@@ -267,7 +267,7 @@ const DomandaEditPreInstructor = () => {
case 'fileupload' : case 'fileupload' :
content = <ul> content = <ul>
{item.fieldValue.map(o => <li key={o.id}> {item.fieldValue.map(o => <li key={o.id}>
{o.filePath ? <a href={encodeURI(o.filePath)}>{o.name}</a> : null} {o.filePath ? <a href={o.filePath}>{o.name}</a> : null}
</li>)} </li>)}
</ul>; </ul>;
break; break;
@@ -581,7 +581,7 @@ const DomandaEditPreInstructor = () => {
{o.fileDetail && o.fileDetail.length === 1 {o.fileDetail && o.fileDetail.length === 1
? <Button icon="pi pi-eye" rounded ? <Button icon="pi pi-eye" rounded
onClick={() => { onClick={() => {
window.open(encodeURI(o.fileDetail[0].filePath), '_blank').focus() window.open(o.fileDetail[0].filePath, '_blank').focus()
}} }}
outlined severity="info" outlined severity="info"
aria-label={__('Mostra', 'gepafin')}/> : null} aria-label={__('Mostra', 'gepafin')}/> : null}
@@ -622,7 +622,7 @@ const DomandaEditPreInstructor = () => {
<ArchiveDocument ndg={data.ndg} applicationId={id} fileId={k.id}/> <ArchiveDocument ndg={data.ndg} applicationId={id} fileId={k.id}/>
<Button icon="pi pi-eye" rounded <Button icon="pi pi-eye" rounded
onClick={() => { onClick={() => {
window.open(encodeURI(k.filePath), '_blank').focus() window.open(k.filePath, '_blank').focus()
}} }}
outlined severity="info" outlined severity="info"
aria-label={__('Mostra', 'gepafin')}/> aria-label={__('Mostra', 'gepafin')}/>